-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
String sorting incorrect after reindex #3078
Comments
Thanks for the ticket, @clintongormley . Sadly this bug is causing many people to yell at me :( They update a record and it's removed from their UI. |
what version does this reproduce on? does this still happen on master? |
@martijnvg this is fixed it seems. this caused by #2991 and fixed in master and 0.90 |
@s1monw this issue is definitely happening on 0.90.0 release. I also just pulled down the repo and ran it against v 1.0.0 beta1. The issue still exists there as well. Please verify and reopen. @clintongormley can you confirm? |
@sarmiena For me it is broken in 0.90.0, but fixed in master and in the 0.90.1 branch. Unless you have a different test to show otherwise? |
@clintongormley I'm building from master using:
However, this is building elasticsearch-1.0.0.Beta1-SNAPSHOT. I'm not sure how to build 0.90.1 since there is no tag or branch in the repo that I can see. Let me know if you want me to show you (live) how to reproduce it using 1.0.0.Beta1 |
@clintongormley ok I just ran the same scenario on 0.90.1 branch and it's definitely still happening. Not sure why yours isn't showing the same issue. |
@clintongormley Sorry to keep bothering :) However I have good news and bad news: Good news: Your test case does work in 0.90.1 You used bulk upload, while I simply added 1 record at a time (100 times). https://gist.github.com/sarmiena/d945848fd683f39d212c I used Ruby to iterate 100 POST requests in that gist, but you can use whatever you'd like. The issue doesn't appear to be resolved. Can we reopen the ticket? |
@s1monw ? |
i added a testcase that mirrors your ruby test in java and it doesn't fail. I can't reproduce your problem I am sorry. Are you sure you build 0.90.1? |
@s1monw I'm sure I can reproduce this in 0.90.1. Perhaps the test isn't producing the same problems since the JSON api is being used and the test is using the interfaces directly? I can to a teamviewer if you'd like. Otherwise you can just pop open irb and copy/paste the ruby code in there. gchat me sarmiena@gmail.com if you want to get ahold of me. otherwise i'm on IRC in #elasticsearch as sarmiena_ (notice the underscore) |
Ok looks like 0.90.1 does fix this issue. The formatting was a little off and I missed the record: Please close.
|
thanks for bringing clarification! good to work with you last night! |
After reindexing a doc, it is not being returned in the correct sort order (when sorting on a string field)
First, index docs 1..100 with a string field
user
:Search, sorting on
user
:Results show that
user:1
is in first position:Now reindex the first doc, with the same values:
And search again:
Doc with
user:1
no longer appears in the correct position, in fact it doesn't appear anywhere in the first 10 results:However, if you return all 100 docs, then it appears in the first position again (correctly):
which leads me to think that it is the shard level sorting which is incorrect.
The text was updated successfully, but these errors were encountered: