[
https://issues.apache.org/jira/browse/SOLR-10321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206507#comment-17206507
]
David Smiley commented on SOLR-10321:
-------------------------------------
Looking back at this... I think I'm inclined to just drop the empty snippet
arrays. It wasn't and still won't be known if the document has a field value
just by looking at the highlighting output, but it's better than needless empty
output.
I filed a LUCENE side issue for the UH to address this, but I'd rather wait to
address it before a real user comes along instead of just a hypothetical need.
> Unified highlighter returns empty fields when using glob
> --------------------------------------------------------
>
> Key: SOLR-10321
> URL: https://issues.apache.org/jira/browse/SOLR-10321
> Project: Solr
> Issue Type: Bug
> Components: highlighter
> Affects Versions: 6.4.2
> Reporter: Markus Jelsma
> Priority: Minor
> Fix For: 7.0
>
>
> {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.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]