lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenel...@danielnaber.de>
Subject Re: Cannot search on plain numbers
Date Wed, 08 Jun 2005 18:35:34 GMT
On Tuesday 07 June 2005 22:48, Peter T. Brown wrote:

> Thank You. I've re-read the FAQ and I think I've got a better
> understanding of how I am confused. Presently I am using this
> arrangement to get my analyzer:
>
>     public static class DefaultAnalyzer extends Analyzer {
>         public TokenStream tokenStream(String fieldName, Reader reader)
> { LetterTokenizer tokenizer = new LetterTokenizer(reader);

The LetterTokenizer removes numbers. Either create your own 
"LetterNumberTokenizer" or use StandardTokenizer.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
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