-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
FastVectorHighlighter doesn't sort array types by score but Plain highlighter does #3757
Comments
After poking around at this I've figured out a few things:
I could live with closing this issue and amending http://www.elasticsearch.org/guide/reference/api/search/highlighting/ to ward people of trying the FVH for score ordered array fields. I imagine the FVH might be faster to highlight array's with long values or lots of values but really, I have no way to test it. |
Filed LUCENE-5285 which I'll have a look at when I get a chance. |
I've posted a solution to this over on the Lucene bug. I'd love to get this fixed so I can use #3750 on all of my fields. Well, once that is implemented. |
@jpountz, would it be possible for you to have a look at LUCENE-5285, this bug's Lucene brother? This wouldn't be a big deal but if I'm going to be able to use #3750 on all of my fields I'll need this fixed too. I've posted a patch over there which I think should do the job. This is a lot less complicated than #3750 was, I think. |
@jpountz got this in to Lucene 4.7 so when that is released and Elasticsearch updates to it this will be fixed for free. I don't feel it is worth X classing it into Elasticsearch at this point. Thanks! |
Agreed. I added the "Lucene 4.7 Upgrade" label so that we don't forget to close this issue when we switch to Lucene 4.7. |
Closes elastic#5104 Closes elastic#5129 Closes elastic#3757
The FastVectorHighlighter doesn't sort array types by score but Plain highlighter does: https://gist.github.com/nik9000/6645681
The plain highlighter's behaviour seems more correct.
The text was updated successfully, but these errors were encountered: