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

Highlight expanded results

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • highlighter

    Description

      Is it possible to highlight documents in the "expand" section in the Solr response?

      I'm aware that https://cwiki.apache.org/confluence/x/jiBqAg states:
      "All downstream components (faceting, highlighting, etc...) will work with the collapsed result set."

      So I tried to put the highlight component after the expand component like this:

      <arr name="components">
      	<str>query</str>
      	<str>facet</str>
      	<str>stats</str>
      	<str>debug</str>
      	<str>expand</str>
      	<str>highlight</str>
      </arr>

      But with no effect.

      Is there another switch that needs to be flipped or could this be implemented easily?
      IMHO this is quite a common use case. And it was possible to highlight all results of a group with the old grouping.

      Attachments

        1. HighlightComponent.java.patch
          1 kB
          Simon Endele

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simon.endele Simon Endele
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: