lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Vasilev <ivasi...@sirma.bg>
Subject How to change Collators per field when querying?
Date Sun, 21 Oct 2007 17:05:30 GMT
Hi Guys,

We have implemented per field setting of Analyzers, based on the 
language that is used for the responding field. Example: field FileName 
is in English, field Content in Chinese. This we do by creating our 
class that implements Analyzer and wraps two analyzers StandardAnalyzer 
and CJKAnalyzer and in the method tokenStream(String fieldName, Reader 
reader) does the real tokenization with proper analyzer based on the 
field name.

So my question is:

What is the best practice Lucene approach to change the Collator object 
in the same manner per field during the searching process, when sorting 
the results?

Best Regards,
Ivan


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


Mime
View raw message