Ok. BTW, maybe we want to ensure then that the Analyzer passed to IndexWriter is not null, since it looks to be a required argument, unless I always addDocument w/ an Analyzer.
Thanks for the replies guys. Shai On Mon, Jul 6, 2009 at 5:22 PM, Yonik Seeley <yo...@lucidimagination.com>wrote: > On Mon, Jul 6, 2009 at 7:12 AM, Shai Erera<ser...@gmail.com> wrote: > > If I want to create an IndexWriter w/o an > > Analyzer, why should I be forced to do new IndexWriter(new > SimpleAnalyzer() > > Passing an Analyzer really doesn't seem like a hardship... it's the > current interface that defines analysis, and it would complicate both > code and semantics to start creating defaults when the analyzer==null. > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-dev-h...@lucene.apache.org > >