Hi,
There is WordDelimiterFilter in Solr that was also ported to Lucene Analysis
module in Lucene trunk (4.0). In 3.x yu can still add solr.jar to your
classpath and WordDelimiterFilterFactory to produce one (WordDelimiterFilter
itself is package-private).
-
Uwe Schindler
H.-H.-Meier-Allee
How do you use the WordDelimiterFilterFactory()? I tried the following code:
TokenStream out = new LowerCaseTokenizer(reader);
WordDelimiterFilterFactory wdf = new WordDelimiterFilterFactory();
out = wdf.create(out);
...
But I am getting a runtime error:
Exception in thread main
http://www.thetaphi.de
eMail: u...@thetaphi.de
-Original Message-
From: stephen.warner.tho...@gmail.com
[mailto:stephen.warner.tho...@gmail.com] On Behalf Of Stephen Thomas
Sent: Tuesday, November 29, 2011 7:39 PM
To: java-user@lucene.apache.org
Subject: Re: Custom Filter