Robert Muir created LUCENE-7968:
-----------------------------------

             Summary: AnalyzingSuggester's comparator compares incorrectly
                 Key: LUCENE-7968
                 URL: https://issues.apache.org/jira/browse/LUCENE-7968
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Robert Muir


Found by LUCENE-7966, but we should fix here separate.

Currently the tie-break case of this comparator is buggy when 
{{hasPayloads=false}}, as it assigns *negative* lengths to the BytesRefs being 
compared. The current BytesRef.compareTo simply silently returns false in this 
case, hiding the bug.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to