lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nattapong Sirilappanich (JIRA)" <>
Subject [jira] [Created] (LUCENE-4176) Can not produce proper collation key for ICUCollatedTermAttributeImp
Date Thu, 28 Jun 2012 11:51:46 GMT
Nattapong Sirilappanich created LUCENE-4176:

             Summary: Can not produce proper collation key for ICUCollatedTermAttributeImp
                 Key: LUCENE-4176
             Project: Lucene - Java
          Issue Type: Bug
          Components: modules/analysis
    Affects Versions: 5.0
            Reporter: Nattapong Sirilappanich

org.apache.lucene.collation.tokenattributes.ICUCollatedTermAttributeImpl return a hash of
collation key's byte.
The given hash value produce incorrect comparison result.
The source code below return 1 for Lucene 3.6.
The code here return 0.
Code to reproduce:

IndexWriter writer = new IndexWriter(ramDir, conf);
Document doc = new Document();
FieldType fieldType = new FieldType();
Field field = new Field("content","เข", fieldType);
IndexSearcher is = new IndexSearcher(;
QueryParser qp = new AnalyzingQueryParser(Version.LUCENE_50,"content", analyzer);

ScoreDoc[] result ="[\u0e01 TO \u0e03]"), null,1000).scoreDocs;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message