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
Fielddata: Switch to the Lucene comparators #5980
Labels
Comments
+1 |
Bumping to 1.4 |
jpountz
added a commit
to jpountz/elasticsearch
that referenced
this issue
Jul 23, 2014
This commit removes custom comparators in favor of the ones that are in Lucene. The major change is for nested documents: instead of having a comparator wrapper that deals with nested documents, this is done at the fielddata level by having a selector that returns the value to use for comparison. Sorting with custom missing string values might be slower since it is using TermValComparator since Lucene's TermOrdValComparator only supports sorting missing values first or last. But other than this particular case, this change will allow us to benefit from improvements on comparators from the Lucene side. Close elastic#5980
jpountz
added a commit
that referenced
this issue
Jul 23, 2014
This commit removes custom comparators in favor of the ones that are in Lucene. The major change is for nested documents: instead of having a comparator wrapper that deals with nested documents, this is done at the fielddata level by having a selector that returns the value to use for comparison. Sorting with custom missing string values might be slower since it is using TermValComparator since Lucene's TermOrdValComparator only supports sorting missing values first or last. But other than this particular case, this change will allow us to benefit from improvements on comparators from the Lucene side. Close #5980
jpountz
changed the title
Switch to the Lucene comparators
Fielddata: Switch to the Lucene comparators
Jul 23, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now that ordinals have been made consistent with Lucene, we should remove our custom comparators and use the Lucene ones.
The text was updated successfully, but these errors were encountered: