You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SearchRequest offers the possibility to set the 'sort' property, but this is missing in MultisearchBody or RequestItem.
How can one reproduce the bug?
GET index-name/_msearch
{}
{"sort":[{"search.count":{"order":"desc"}}],"from":0,"timeout":"60s","size":5,"query":{"bool":{"filter":{"percolate":{"field":"search.query","document":{"keyword":"This is a test sentence"}}}}}}
{"index": "index-name"}
{"sort":[{"search.count":{"order":"desc"}}],"from":0,"timeout":"60s","size":5,"query":{"bool":{"filter":{"percolate":{"field":"search.query","document":{"keyword":"This is test sentence 2"}}}}}}
Opensearch allows "sort" in the REST request but not with opensearch java client
What is the bug?
SearchRequest offers the possibility to set the 'sort' property, but this is missing in MultisearchBody or RequestItem.
How can one reproduce the bug?
Opensearch allows "sort" in the REST request but not with opensearch java client
throws
What is the expected behavior?
MultiSearchBody should allow sort functionality.
What is your host/environment?
opensearch java 2.6 .
Do you have any screenshots?
N/A
Do you have any additional context?
It looks like elasticsearch-java fixed this bug in 7.17.5 elastic/elasticsearch-java#170
The text was updated successfully, but these errors were encountered: