I have a dynamic text field bar_*
in my index and want Solr to return highlightings for that field. So what I run is:
q=gold&hl=true&hl.fl=bar_*
It works as expected BUT in case I add some more fields to hl.fl
it stops working. E.g.
q=gold&hl=true&hl.fl=bar_*,foo
Notes:
bar_*
andfoo
fields are in the index/schema and there is no error here.- just rewriting request as
q=gold&hl=true&hl.fl=bar_*&hl.fl=foo
orq=gold&hl=true&hl.fl=bar_* foo
does NOT help. - I didn't find any bugs in Solr JIRA on that topic.
Does anyone have an idea how to bit this. The possible workarounds that I see are:
- Use
hl.fl=*
. But this one is not good for performance. - Explicitly specify all possible fields names for my dynamic field. But I don't like that at all.