lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: how to filter numeric values?
Date Mon, 22 Mar 2010 17:47:59 GMT


> hello;
> 
> i want to filter my tokens and keep only string tokens (
> remove numbers
> ect).
> i sue this :
> 
> public TokenStream tokenStream(String fieldName, Reader
> reader) {
>     return new PorterStemFilter(
>       new StopFilter(
>         new LowerCaseFilter(
>           new StandardFilter(
>             new
> StandardTokenizer(reader))), stopset));
>   }


Why not use LowerCaseTokenizer [1] instead of StandardTokenizer + StandardFilter +  LowerCaseFilter.


[1]http://lucene.apache.org/java/2_9_2/api/core/org/apache/lucene/analysis/LowerCaseTokenizer.html


      

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