Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
String sorting incorrect after reindex #3078
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
Search, sorting on
Results show that
Now reindex the first doc, with the same values:
And search again:
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.
@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 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).
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'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 firstname.lastname@example.org 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: