Or even better: CharArraySet.EMPTY_SET - sorry for noise. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de
> -----Original Message----- > From: Uwe Schindler [mailto:u...@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: u...@thetaphi.de > > > > -----Original Message----- > > From: Pedro Lacerda [mailto:pslace...@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 <zhoucheng2...@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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org