Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6070

Cannot use multiple highlighting components in a single solrconfig

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.7.2, 4.8
    • None
    • highlighter

    Description

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            ecario Elaine Cario
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: