Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
7.6
-
None
-
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"