[jira] [Created] (LUCENE-7968) AnalyzingSuggester's comparator compares incorrectly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (LUCENE-7968) AnalyzingSuggester's comparator compares incorrectly

JIRA jira@apache.org
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: [hidden email]
For additional commands, e-mail: [hidden email]