Different Analyzers for indexing
2 posts in topic
Flat View  Flat View

Posted By:   Tomer_Libal
Posted On:   Sunday, October 6, 2002 01:27 AM

How do I use different analyzer for indexing, i want one field (the text) to be stemmed and another field (a keyword field) to be as it is, but i must give an analyzer to the indexer constructor.


Re: Different Analyzers for indexing

Posted By:   Poorva_Potnis  
Posted On:   Wednesday, October 30, 2002 05:33 AM

If you want a field to be as it is (meaning not tokenized, right?), construct it as a Keyword field. Or pass 'token' as 'false' while constructing the Field - Field(String name, String string, boolean store, boolean index, boolean token).
Check out the javadocs for Class Field.

Did I get your question right?


Re: Different Analyzers for indexing

Posted By:   Otis_Gospodnetic  
Posted On:   Monday, October 7, 2002 06:01 AM

You must have not checked the FAQ, have you? :)
About | Sitemap | Contact