-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Labels
Team:DeveloperIssues owned by the Developer Docs TeamIssues owned by the Developer Docs Teamcommunitygood first issueGood for newcomersGood for newcomerssource:webIssues originating from the elastic.co docsIssues originating from the elastic.co docs
Description
Type of issue
Inaccurate
What documentation page is affected
https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-knn-query
What happened?
I was reading the k-NN query DSL documentation at this link and initially misunderstood how to apply the oversample
parameter. The way it's presented (without indentation) led me to believe it was a top-level field of the Knn query. However, through testing, I realized oversample
is actually a nested parameter under rescore_vector
.
This lack of visual hierarchy in the documentation made it challenging to understand the query structure.
Here’s a screenshot from the latest version of the docs showing how rescore_vector
and oversample
are currently displayed:

Additional info
No response
Metadata
Metadata
Assignees
Labels
Team:DeveloperIssues owned by the Developer Docs TeamIssues owned by the Developer Docs Teamcommunitygood first issueGood for newcomersGood for newcomerssource:webIssues originating from the elastic.co docsIssues originating from the elastic.co docs