lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 蒋明原 <mailtojiangmingy...@gmail.com>
Subject Re: adding documents to an existing index
Date Wed, 27 Oct 2010 12:48:50 GMT
you are too lazy.download the lucene source code,take a glance and you will
find demos;

On Wed, Oct 27, 2010 at 8:43 PM, Yakob <jacobian@opensuse-id.org> wrote:

> I did searched about this constructor and find that it's already been
> deprecated.
>
> http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/IndexWriter.html#IndexWriter(org.apache.lucene.store.Directory
> ,
> org.apache.lucene.analysis.Analyzer, boolean)
>
> I am using lucene 3.0 now.can I really use this constructor or I
> should try it first? btw I would appreciate if you gave me a code
> sample though. thanks. :-)
>
> On 10/27/10, 蒋明原 <mailtojiangmingyuan@gmail.com> wrote:
> > IndexWriter writer =new IndexWirter(path,analyzer,false);
> >
> > the 3rd parameter is what you want.
> > than you can
> >
> > writer.add(doc)
> >
> > enjoy .
> >
>
> --
> http://jacobian.web.id
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message