lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4534) WFST/AnalyzingSuggest don't handle keys containing 0 bytes correctly
Date Sun, 04 Nov 2012 15:12:12 GMT
Michael McCandless created LUCENE-4534:
------------------------------------------

             Summary: WFST/AnalyzingSuggest don't handle keys containing 0 bytes correctly
                 Key: LUCENE-4534
                 URL: https://issues.apache.org/jira/browse/LUCENE-4534
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Michael McCandless
             Fix For: 4.1, 5.0


While binary terms w/ 0 bytes are rare, they are "allowed" but will cause exceptions with
at least WFST/AnalyzingSuggester.

I think to fix this we should pass custom Comparator to the offline sorter that decodes each
BytesRef key and does the actual comparison we want, instead of using separator and relying
on BytesRef.compareTo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message