Errors When Querying Non-existent Indexes
I renamed the first index I created when testing out the feature so it wasn't default, and spent quite a bit of time debugging why my queries were returning no documents. As it turns out it the default index that it queries if not defined is "default", but that index didn't exist. Instead of throwing an error about querying a non-existent index, it just returned an empty array which was very frustrating
![](https://secure.gravatar.com/avatar/fc5028958cbf62f74e554c4d6d1920dc?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
This work is under review and research.
-
Andrii Hrachov commented
Upvote. We had numerous incidents on production because of that.
On the good side, now we have canary testing, and empty responses alerts, but all of this could be avoided.
-
[Deleted User] commented
I encountered the same issue. When an index does not exist, I'd prefer to get an error/warning message than an empty array. It took me some time to realize I'd misspelled the index name.