lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elaine Cario (JIRA)" <>
Subject [jira] [Commented] (SOLR-6070) Cannot use multiple highlighting components in a single solrconfig
Date Tue, 13 May 2014 18:46:17 GMT


Elaine Cario commented on SOLR-6070:

If I commented out the code in question, it all worked fine.  Was going to submit a patch,
but noted there is some complexity around handling the hard-coded internal COMPONENT_NAME,
which is static, so patch is delayed while I work through that (unless of course someone who
is more familiar than me can work through that - this is my first attempt at changing Solr!).

> Cannot use multiple highlighting components in a single solrconfig
> ------------------------------------------------------------------
>                 Key: SOLR-6070
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>    Affects Versions: 4.7.2, 4.8
>            Reporter: Elaine Cario
>              Labels: highlighting
> I'm trying to use both the PostingsHighlighter and the FastVectorHighlighter in the same
solrconfig (selection driven by different request handlers), but once I define 2 search components
in the config, it always picks the Postings Highlighter (even if I never reference it in any
request handler).
> I think the culprit is some specific code in SolrCore.loadSearchComponents(), which overwrites
the "highlighting" component with the contents of the "postingshighlight" component - so the
components map has 2 entries, but they both point to the same highlighting class (the PostingsHighlighter).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message