Skip to content

Index stat metrics are not including queries using knn level #128098

Open
@stures

Description

@stures

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
Image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions