-
Notifications
You must be signed in to change notification settings - Fork 25.4k
[docs] nested knn only supports score_mode max #125582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
@@ -71,7 +71,7 @@ See [Multi-level nested queries](#multi-level-nested-query-ex) for an example. | |||
|
|||
|
|||
`score_mode` | |||
: (Optional, string) Indicates how scores for matching child objects affect the root parent document’s [relevance score](/reference/query-languages/query-dsl/query-filter-context.md#relevance-scores). Valid values are: | |||
: (Optional, string) Indicates how scores for matching child objects affect the root parent document’s [relevance score](/reference/query-languages/query-dsl/query-filter-context.md#relevance-scores). Default is `avg`, but nested `knn` queries only support `score_mode=max`. Valid values are: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind also putting a reference on query-dsl-knn-query.md
There is a section there on Knn query inside a nested query
Also, it seems like we need to also now update: https://github.com/elastic/docs-content/blob/main/solutions/search/vector/knn.md in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call out, added two more places where we should mention this if its not already mentioned.
documentation fix related to [this](elastic/elasticsearch#122625), this adds a note that nested KNN queries only support `score_mode=max`. see also elastic/elasticsearch#125582.
* [docs] nested knn only supports score_mode max
docs need to mention that nested
knn
queries only supportscore_mode=max
.see #122625