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
When performing count with an illegal query (too many clauses, invalid regex, etc'), the error is hidden from the user and the return value is 0, which is wrong.
For example if we run an invalid query, with date range filtering on several indices, the result will include "successful" shards which are considered successful because the query didn't event ran on them because they not meet the date range criteria, and some failed shards for indices who did meet the range, but failed because of the query.
The response is not validated and there is no check for failed shards. Actually there is a 6-years old TODO that mentions that:
This behaviour is confusing and unwanted, as you can search for important events and get '0' from the count, although there was just an error in the query.
The text was updated successfully, but these errors were encountered:
When performing count with an illegal query (too many clauses, invalid regex, etc'), the error is hidden from the user and the return value is 0, which is wrong.
For example if we run an invalid query, with date range filtering on several indices, the result will include "successful" shards which are considered successful because the query didn't event ran on them because they not meet the date range criteria, and some failed shards for indices who did meet the range, but failed because of the query.
The response is not validated and there is no check for failed shards. Actually there is a 6-years old TODO that mentions that:
Here is an example response:
and the return value will be 0.
This behaviour is confusing and unwanted, as you can search for important events and get '0' from the count, although there was just an error in the query.
The text was updated successfully, but these errors were encountered: