Description
Elasticsearch Version
8.18.0
Installed Plugins
No response
Java Version
bundled
OS Version
4.14.281-212.502.amzn2.aarch64
Problem Description
Description:
When looking at the index stats endpoint queries done using the knn level seem to not be included in the metrics While they are included for query level
We are looking at fetch_time_in_millis + query_time_in_millis + scroll_time_in_millis in this case
Expected:
A query should add metrics to the index stats data regardless if the knn level or query-knn level was used
Actual:
Only when using query-knn is the data correctly added to index stats
Adding an image from our metrics, at 10:10 the queries was changed to use query-knn level instead of knn. The data in the queries are the same
Steps to Reproduce
For an elastic index with knn data:
Perform a number of queries using knn level
For another elastic index with knn data:
Perform the same queries using query level
The data in index stats (for example fetch_time_in_millis + query_time_in_millis + scroll_time_in_millis) should be of similar size but they are vastly different
Logs (if relevant)
No response