-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Add support for combining fields to the unified highlighter (matched_fields) #5172
Comments
Abandoning in favor of getting this Elasticsearch plugin released which has this: https://github.com/nik9000/expiremental-highlighter |
So the lucene ticket mentioned is resolved, does this mean it can be exposed in ElasticSearch as well without the need of the "experiemental-highlighter" plugin ? Would be nice :) |
This should be doable now that we're using Lucene's postings highlighter instead of our own custom version. |
Now that we're dropping the postings highlighter in favor of the unified highlighter, I think this should be about the unified highlighter instead. |
cc @elastic/es-search-aggs |
I came across this issue when trying to find the right highlighter for our multifields. At the moment we use FVH and would want to switch to unified for its bm25 scoring, but I don't think we can without matched_fields being supported for unified. I see this issue hasn't gotten much attention (any chance it's going to be picked up still?), but maybe someone can comment if one of the following approaches may work in a custom plugin:
|
I know this has been around for quite a while so it's probably not the biggest priority, but with the full focus now apparently being on the unified highlighter, this has sort of risen up in priority for us since it means we either lose functionality we're currently using with the FVH or don't get the benefits of any improvements to the unified highlighter. |
Add support to the Uunified highlighter to combine matches on multiple fields to highlight a single field: "matched_fields". Based on Lucene PR: apache/lucene#13268 Lucene PR is based on the concept of masked fields where masked fields are different from the original highlighted field. This PR in Elasticsearch uses the already existing highlighter parameter "matched_fields" Closes elastic#5172
Addressed in PR #107640 |
Like the FVH can combine fields, it'd be nice to be able to combine fields in the postings highlighter. See #3750 for the FVH. See https://issues.apache.org/jira/browse/LUCENE-4652 for the Lucene twin.
The text was updated successfully, but these errors were encountered: