lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: How to avoid filtering stop words like "IS" in StandardAnalyzer
Date Sat, 28 Jan 2012 11:56:44 GMT
Or even better: CharArraySet.EMPTY_SET - sorry for noise.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Uwe Schindler [mailto:uwe@thetaphi.de]
> Sent: Saturday, January 28, 2012 12:52 PM
> To: java-user@lucene.apache.org
> Subject: RE: How to avoid filtering stop words like "IS" in StandardAnalyzer
> 
> Right, but Collections.emptySet() should be used :-)
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
> 
> 
> > -----Original Message-----
> > From: Pedro Lacerda [mailto:pslacerda@gmail.com]
> > Sent: Saturday, January 28, 2012 12:49 PM
> > To: java-user@lucene.apache.org
> > Subject: Re: How to avoid filtering stop words like "IS" in
> > StandardAnalyzer
> >
> > Hi Cheng,
> >
> > You can provide your own set of stop words as the second argument of
> > StandardAnalyzer constructor.
> >
> > new StandardAnalyzer(version, new HashSet());
> >
> >
> >
> > Pedro Lacerda
> >
> >
> >
> > 2012/1/28 Cheng <zhoucheng2008@gmail.com>
> >
> > > Hi,
> > >
> > > I don't want to filter certain stop words within the StandardAnalyzer?
> > > Can I do so?
> > >
> > > Ideally, I would like to have a customized StandardAnalyzer.
> > >
> > > Thanks.
> > >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


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