Right, but Collections.emptySet() should be used :-) ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected]
> -----Original Message----- > From: Pedro Lacerda [mailto:[email protected]] > Sent: Saturday, January 28, 2012 12:49 PM > To: [email protected] > 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 <[email protected]> > > > 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: [email protected] For additional commands, e-mail: [email protected]
