Hi Guys,
There is something in the Lucene that disturbs me. My question is about sorting. In the queries there are used collator objects that sort the results (in the class FieldSortedHitQueue). But in the indexing process they are not used. As I now all the terms are ordered during the indexing process. Based on this ordering are performed Range searches. Currently I think the sorting during the indexing process is made in the classes org.apache.lucene.index.Term and TermBuffer. But there is used code like this:

text.compareTo(other.text);

or character comparison in the char arrays in the class TermBuffer.

but not collator.compare(text, othre.text);

   So my questions are:

  1. Are Range queries work correctly with all languages for which
     there are analyzers? (for example CJK and Thai);
  2. If the answer is no can I fix this problem by adding collators in
     the above classes?

Best Regards,

Ivan








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to