You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Endele (JIRA)" <ji...@apache.org> on 2014/11/24 13:01:13 UTC

[jira] [Commented] (SOLR-5127) Allow multiple wildcards in hl.fl

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org