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

UnifiedHighlighter should treat negative values as Integer.MAX_VALUE in hl.maxAnalyzedChars.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 7.6
    • None
    • highlighter
    • None

    Description

      OriginalHighlighter and FastVectorHighlighter treat negative values as Integer.MAX_VALUE in hl.masAnalyzedChars, but UnifiedHighlighter returns an error when setting negative values as the parameter.

       

      Here is the procedure for reproducing.

       

      $ bin/solr -e techproducts
      $ curl -XGET "localhost:8983/solr/techproducts/select?hl.fl=name&hl.maxAnalyzedChars=-1&hl.method=original&hl=on&q=memory&df=name"
      $ curl -XGET "localhost:8983/solr/techproducts/select?hl.fl=name&hl.maxAnalyzedChars=-1&hl.method=fastVector&hl=on&q=memory&df=name"
      $ curl -XGET "localhost:8983/solr/techproducts/select?hl.fl=name&hl.maxAnalyzedChars=-1&hl.method=unified&hl=on&q=memory&df=name"
      

       

      Attachments

        1. SOLR-13121.patch
          2 kB
          Yasufumi Mizoguchi

        Activity

          People

            Unassigned Unassigned
            yasufumi Yasufumi Mizoguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: