lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelvin Tan <>
Subject Re: Different Analyzer for each Field
Date Mon, 28 Jul 2003 10:12:38 GMT
Perhaps one way to do it is to have 2 separate indices for the 2 analyzers. 
Then, depending on which field you wish to search, you can choose from either 

AFAIK, there is a one-one mapping between an index and an analyzer.


On Mon, 28 Jul 2003 10:32:21 +0200, Claude Libois said:
>My question is in the title: how can I use a different   Analyzer
>each field of a Document object? My problem is that if I use
>LetterTokenizer for a field which contains a String representation
>of a
>number, after I can't delete it. Probably because this analyzer
>away my number. So I need to use whitespaceTokenizer for this field
>I would like to use LetterTokenizer for the other. Can someone help
>thank you
>Claude Libois
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message