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

FastVectorHighligher log message could be improved

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.10.4
    • Fix Version/s: 6.3
    • Component/s: highlighter
    • Labels:
      None

      Description

      If you try to use the FastVectorHighlighter on a field that doesn't have TermPositions and TermOffsets enabled, you get an ok error message:

      WARN org.apache.solr.highlight.DefaultSolrHighlighter – Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions and TermOffsets.

      If you heed that message, and dutifully add TermPositions and TermOffsets to your schema, you get a crashing message that says:

      Blah, blah, stacktrace
      ....
      Caused by: java.lang.IllegalArgumentException: cannot index term vector offsets when term vectors are not indexed (field="court")
      ...
      

      Can we update the first message to say:

      Solr will use Highlighter instead of FastVectorHighlighter because assignedTo field does not store TermPositions, TermOffsets, and TermVectors.

      That'd save at least one headache next time I screw this up...

        Attachments

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              mlissner Mike Lissner
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: