List Info

Thread: How to change Collators per field when querying?




How to change Collators per field when querying?
country flaguser name
Bulgaria
2007-10-21 12:05:30
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-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )