-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Incorrect Documentation: nested_path #27098
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
Comments
The issue was actually not related to boolean search, but to nested search. Here is a short outline of the problem and our solution. We would like to request the documentation (https://www.elastic.co/guide/en/elasticsearch/guide/current/nested-sorting.html) to be updated to better reflect how and when someone should use the It's mentioned that the field is mandatory in https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html , but very few examples show it's use. Our test data: data.txt Our test schema: schema.txt Our test query: query1.txt Resulted in : result1.txt Note the negative integer under Changing the query to : query2.txt |
Pinging @elastic/es-search-aggs |
This commit removes the nested_path and nested_filter options deprecated in 6x. This change also checks that the sort field has a [nested] option if it is under a nested object and throws an exception if it's not the case. Closes elastic#27098
Thanks @MacMcIrish and @lukas-gitl and sorry for the (very) late reply. The negative value in the first example is the default value that we use when the field is missing in the document. It's happening because the field is nested but the |
This commit removes the nested_path and nested_filter options deprecated in 6x. This change also checks that the sort field has a [nested] option if it is under a nested object and throws an exception if it's not the case. Closes #27098
It is not clear when one should use
nested_path
. We've had some issues with this. More details in next post.The text was updated successfully, but these errors were encountered: