[ 
https://issues.apache.org/jira/browse/SOLR-5127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14222931#comment-14222931
 ] 

Simon Endele commented on SOLR-5127:
------------------------------------

I implemented a similar solution, which seems to work for us.

May be interesting:
Using the PostingsSolrHighlighter an expression like {{hl.fl=*_text,myfield}} 
even causes the following exception:
{code}
java.lang.IllegalArgumentException: fieldsIn must not be empty
at 
org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightFieldsAsObjects(PostingsHighlighter.java:342)
at 
org.apache.lucene.search.postingshighlight.PostingsHighlighter.highlightFields(PostingsHighlighter.java:303)
at 
org.apache.solr.highlight.PostingsSolrHighlighter.doHighlighting(PostingsSolrHighlighter.java:140)
at 
org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:146)
at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
{code}

> Allow multiple wildcards in hl.fl
> ---------------------------------
>
>                 Key: SOLR-5127
>                 URL: https://issues.apache.org/jira/browse/SOLR-5127
>             Project: Solr
>          Issue Type: New Feature
>          Components: highlighter
>    Affects Versions: 3.6.1, 4.4
>            Reporter: Sven-S. Porst
>         Attachments: highlight-wildcards.patch
>
>
> When a wildcard is present in the hl.fl field, the field is not split up at 
> commas/spaces into components. As a consequence settings like 
> hl.fl=*_highlight,*_data do not work.
> Splitting the string first and evaluating wildcards on each component 
> afterwards would be more powerful and consistent with the documentation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to