On Sun, Mar 13, 2011 at 12:19 PM, Patrick Diviacco <patrick.divia...@gmail.com> wrote: > Sorry, I had some issues with the mailing list and I didn't explain > properly. The reason is that I'm using the nightly built of Lucene (trunk) > and such WhitespaceAnalyzer is not there. Also, if I download the commons > analyzers library it is not there.
well it should be there - look at /trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/core/WhitespaceAnalyzer.java go to the trunk folder and run ant package from there this should build the analyzer-common.jar too simon > thanks > > On 9 March 2011 03:07, Simon Willnauer <simon.willna...@googlemail.com> > wrote: >> >> Why do you want to replace the WhitespaceAnalyzer? I don't really >> understand what you are up to. >> >> simon >> >> On Fri, Mar 4, 2011 at 3:21 PM, Patrick Diviacco >> <patrick.divia...@gmail.com> wrote: >> > What's the best way to replace WhitespaceAnalyzer in this line in Lucene >> > nightly build 4.0 ? Is there a generic analyzer I can use ? >> > >> > writer = new IndexWriter(FSDirectory.open(INDEX_DIR), new >> > WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED); >> > >> > 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