Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES style sorting parameters is not working #907

Open
zqhi71 opened this issue Jul 17, 2023 · 0 comments
Open

ES style sorting parameters is not working #907

zqhi71 opened this issue Jul 17, 2023 · 0 comments

Comments

@zqhi71
Copy link

zqhi71 commented Jul 17, 2023

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

What were you trying to achieve?

The results returned in the expected sorting order.

What action did you take?

Call ES API with order param using python requests (HTTP request)

What action/response/output did you expect?

The order param is {"_score": "desc"} with {"size": 50} the expected result should be return the top 50 records with the highest score.

What actually happened?

Return random, The real highest score is 15.9161, but both "asc" and "desc" return records with score range from 7.29 to 15.3973

How to reproduce the issue?

Try run the query with score params

What version of ZincSearch are you using?

docker version: public.ecr.aws/zinclabs/zinc:latest sha256:fefa9ee7256a3c9e7a4f95345265ddf03daa912c5662277860bcbbe77088e662

Anything else that you can tell that will help us diagnose and resolve the issue efficiently?

I tried {"sort": ["-_score"]} sometimes is work, but not always.

Any attachments/screenshots?
image

Which service(s) is this relate to?
This could be GUI or API
API: GET /es/{INDEX}/_search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant