hello thanks about the reply
i found another solution:
StopAnalyzer std1 = new StopAnalyzer(Version.LUCENE_CURRENT);
PorterStemFilter std =new PorterStemFilter(std1.tokenStream("field",
reader));
juniol wrote:
>
> hello;
>
> i want to filter my tokens and keep only string tokens ( remove numbers
> ect).
> i use this :
>
> public TokenStream tokenStream(String fieldName, Reader reader) {
> return new PorterStemFilter(
> new StopFilter(
> new LowerCaseFilter(
> new StandardFilter(
> new StandardTokenizer(reader))), stopset));
> }
>
>
>
> thanks
>
>
--
View this message in context:
http://old.nabble.com/how-to-filter-numeric-values--tp27989882p27990352.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]