You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ron Greenwood <ro...@uinetworks.com> on 2002/01/08 18:37:44 UTC

Filters?

Hi,

How do you use the filters such as the PorterStemmer Filter?  I can't
find and docs or sample code that show how to do this.  Also, I am
unable to search for numbers when I do a query.  They seem to all be
stripped out of my search.  How would I go about doing this?

Thanks, Ron

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Filters?

Posted by ca...@bookandhammer.com.
A good example to look at for filters is the StandardAnalyzer
org.apache.lucene.analysis.standard

This is also a good analyzer to use if you want to include numbers.
Just replace the Analyzer you are using now (StopAnalyzer, or 
SimpleAnalyzer with Standard Analyzer).

--Peter


On Tuesday, January 8, 2002, at 09:37 AM, Ron Greenwood wrote:

> Hi,
>
> How do you use the filters such as the PorterStemmer Filter?  I can't
> find and docs or sample code that show how to do this.  Also, I am
> unable to search for numbers when I do a query.  They seem to all be
> stripped out of my search.  How would I go about doing this?
>
> Thanks, Ron
>
> --
> To unsubscribe, e-mail:   <mailto:lucene-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-
> help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>