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

suspicious FVH init code in DefaultSolrHighlighter even when FVH should not be used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.10
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Rich Hume reported gettting errors from FastVectorHighlighter, evidently while using the the surround query parser, even though he was not trying to "useFastVectorHighlighter"

      my naive reading of the code leads me to believe that DefaultSolrHighlighter is incorrectly attempting to initialize a FVH instance even when it shouldn't be – which appears to cause failures in cases where the query in use is not something that can be handled by the FVH.

      Not sure how to reproduce at the moment – but the code smells fishy.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                hossman Chris M. Hostetter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: