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

Surround Query Parser sometimes doesn't highlight

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • highlighter
    • None

    Description

      From TestSurroundQueryParser

      "q", "{!surround df=name}k w l",
                      "hl", "true",
                      "hl.fl", "name", 
                      "hl.usePhraseHighlighter", "false"
      

      This won't work with the unified highlighter because when usePhraseHighlighter is disabled as seen above, it relies on Query.visitTerms to be implemented properly, which it isn't (a TODO in Lucene for that query).

      Workaround is to not disable usePhraseHighlighter or to use the original highlighter.

      Attachments

        Activity

          People

            dsmiley David Smiley
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: