[
https://issues.apache.org/jira/browse/SOLR-10321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470985#comment-17470985
]
ASF subversion and git services commented on SOLR-10321:
--------------------------------------------------------
Commit d1d4118a3b30654a7e09a5f900a6d6ff6e50d485 in solr's branch
refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=d1d4118 ]
SOLR-10321: highlighting (unified): Don't return fields with no highlights.
(#487)
In truth, the UH doesn't know the difference between a doc having a field (but
got no highlights) vs not having the field. This change is an optimization in
edge cases of highlighting many fields.
> Unified highlighter returns empty fields when using glob
> --------------------------------------------------------
>
> Key: SOLR-10321
> URL: https://issues.apache.org/jira/browse/SOLR-10321
> Project: Solr
> Issue Type: Improvement
> Components: highlighter
> Affects Versions: 6.4.2
> Reporter: Markus Jelsma
> Assignee: David Smiley
> Priority: Blocker
> Fix For: 9.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code}
> q=lama&hl.method=unified&hl.fl=content_*
> {code}
> returns:
> {code}
> <lst
> name="http://www.nu.nl/weekend/3771311/dalai-lama-inspireert-westen.html">
> <arr name="content_en"/>
> <arr name="content_nl">
> <str>Nobelprijs Voorafgaand aan zijn bezoek aan Nederland is de dalai
> <em>lama</em> in Noorwegen om te vieren dat 25 jaar geleden de
> Nobelprijs voor de Vrede aan hem werd toegekend. Anders dan in Nederland
> wordt de dalai <em>lama</em> niet ontvangen in het Noorse
> parlement. </str>
> </arr>
> <arr name="content_general"/>
> <arr name="content_de"/>
> <arr name="content_fr"/>
> <arr name="content_es"/>
> <arr name="content_pt"/>
> <arr name="content_ja"/>
> <arr name="content_zh-cn"/>
> <arr name="content_th"/>
> <arr name="content_ar"/>
> </lst>
> {code}
> FastVector and original do not emit:
> {code}
> <arr name="content_de"/>
> <arr name="content_fr"/>
> <arr name="content_es"/>
> <arr name="content_pt"/>
> <arr name="content_ja"/>
> <arr name="content_zh-cn"/>
> <arr name="content_th"/>
> <arr name="content_ar"/>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]