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 <[email protected]>wrote:

> On Mon, Jul 6, 2009 at 7:12 AM, Shai Erera<[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to