You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I have Meilisearch running in a kubernetes environment with no volume attached. When i reboot the Meilisearch container the indexes are cleared. For my situation that's fine and not an issue because most indexes are refreshed every 15min/1h.
But I implemented multiSearch and when Meilisearch had a reboot it can happen that not all indexes are back.
Expected behavior
I would expect that the Multisearch query would not break and just continue giving me results for the indexes that can be found.
Current behavior
Multisearch breaks and throws an error Inside '.queries[0]': Index 'documents' not found. and returns no results.
class_1[MeiliSearchApiError]: Inside`.queries[0]`: Index`documents`notfound.at<path>/node_modules/meilisearch/dist/bundles/meilisearch.cjs.js:187:23atstep(<path>/node_modules/meilisearch/dist/bundles/meilisearch.cjs.js:104:23)
at Object.next (<path>/node_modules/meilisearch/dist/bundles/meilisearch.cjs.js:85:53)
at fulfilled (<path>/node_modules/meilisearch/dist/bundles/meilisearch.cjs.js:75:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {code: 'index_not_found',type: 'invalid_request',link: 'https://docs.meilisearch.com/errors#index_not_found',httpStatus: 400}
Environment (please complete the following information):
OS: Node 18.x
Meilisearch version: 1.1.1
meilisearch-js version: 0.32.3
Browser: Any
The text was updated successfully, but these errors were encountered:
Hello @sjorsjes. Sorry for the inconvenience, and thanks for the report. Indeed this is currently the expected behavior. We intend to make this behavior obvious and warn users through the documentation, as seen in this issue.
For people with the same issue, I workaround this issue by checking with the client.getStats() what indexes are available and then do a multisearch for all indexes that exists.
Description
I have Meilisearch running in a kubernetes environment with no volume attached. When i reboot the Meilisearch container the indexes are cleared. For my situation that's fine and not an issue because most indexes are refreshed every 15min/1h.
But I implemented multiSearch and when Meilisearch had a reboot it can happen that not all indexes are back.
Expected behavior
I would expect that the Multisearch query would not break and just continue giving me results for the indexes that can be found.
Current behavior
Multisearch breaks and throws an error
Inside '.queries[0]': Index 'documents' not found.
and returns no results.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: