Marko Bekhta (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNjE2M2Y4...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-4828?atlOrigin=eyJpIjoiNjE...
) HSEARCH-4828 (
https://hibernate.atlassian.net/browse/HSEARCH-4828?atlOrigin=eyJpIjoiNjE...
) Make Lucene's unified highlighter be able to produce multiple highlighted snippets (
https://hibernate.atlassian.net/browse/HSEARCH-4828?atlOrigin=eyJpIjoiNjE...
)
Issue Type: Improvement Assignee: Unassigned Components: backend-lucene Created:
28/Mar/2023 03:58 AM Fix Versions: 6.2-backlog Priority: Major Reporter: Marko Bekhta (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Lucene’s unified highlighter will concatenate all the snippets into one string by default.
For example if we have a multivalued field with:
"The quick brown fox jumps right over the little lazy dog",
"This string mentions a dog"
Applying a unified highlighter to it will result in:
"The quick brown fox jumps right over the little lazy <em>dog</em>This
string mentions a <em>dog</em>"
While using other highlighter types, or if using the Elasticsearch backend, the result
will be:
"The quick brown fox jumps right over the little lazy
<em>dog</em>",
"This string mentions a <em>dog</em>"
To get Lucene’s unified highlighter to behave in the same way, we’d need to have our
custom implementation of both PassageFormatter and FieldHighlighter
Alternatively, we might end up simply exposing the ellipsis parameter of the
DefaultPassageFormatter to the users through Lucene-specific unified highlighter DSL.
(
https://hibernate.atlassian.net/browse/HSEARCH-4828#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4828#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100219- sha1:6a6077b )