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 12:52:12 UTC

[jira] [Created] (SOLR-6783) SolrHighlighter does not accept globs in multi-valued hl.fl argument

Simon Endele created SOLR-6783:
----------------------------------

             Summary: SolrHighlighter does not accept globs in multi-valued hl.fl argument
                 Key: SOLR-6783
                 URL: https://issues.apache.org/jira/browse/SOLR-6783
             Project: Solr
          Issue Type: Bug
            Reporter: Simon Endele


These two cases work correctly:
- hl.fl = *_text
- hl.fl = title_text,content_text,myfield

But the expression {{hl.fl=*_text,myfield}} results in empty highlighted docs when the default highlighter is used.
Using the PostingsSolrHighlighter it 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}
Not yet tested with FastVectorHighlighter.

Tested with Solr 4.10.2.



--
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