Shopware 6: Limit the admin dashboard search

Today I learned!

One can limit the entities which are searched on the admin backend – which is cool, because we are running open search (the forked elasticsearch) on the instance and if one implements a new indexer to search in it, one might forget to implement an elastic search indexer as well. In our case this happened for the blog plugin we use.

Unfortunately one gets an unreadable error on the console and nothing is show to the user – just no search results.

{
"errors": [
{
"status": "500",
"code": "ELASTICSEARCH_INDEXING",
"title": "Internal Server Error",
"detail": "Following errors occurred while indexing: \n",
"meta": {
"parameters": []
}
}
]
}

To fix this, reload the admin (because the second time you try it, it doesn’t work 🤷), then click on the search bar “All(e)” a menu opens, then click again on “All(e)” and another menu opens. In the bottom right corner you find a settings wheel⚙️, click on it and get a list of all your entities. Remove one by one until you find the culprit. Tomorrow I’ll write another article how to find the problem – because it seems there is a core bug and the error should be shown in the error list 🤔

And here is a video how it works:

One thought on “Shopware 6: Limit the admin dashboard search

Leave a Reply

Discover more from Winkelwagen

Subscribe now to keep reading and get access to the full archive.

Continue reading