l.com]
Sent: Tuesday, April 21, 2009 3:09 AM
To: java-user@lucene.apache.org
Subject: Re: IndexWriter update method
*IndexWriter.deleteDocuments<http://lucene.apache.org/java/2_4_1/api/core/org/apache/lucene/index/IndexWriter.html#deleteDocuments%28org.apache.lucene.search.Query%29>
*
little lost
> on
> > how to create a term to correctly find this.
> >
> > Thanks,
> > Billy
> >
> > -Original Message-
> > From: Erick Erickson [mailto:erickerick...@gmail.com]
> > Sent: Friday, April 17, 2009 8:08 PM
> > To: java-user@lucene.
create a document that has two fields? If so I am a little lost on
> how to create a term to correctly find this.
>
> Thanks,
> Billy
>
> -Original Message-
> From: Erick Erickson [mailto:erickerick...@gmail.com]
> Sent: Friday, April 17, 2009 8:08 PM
> To: java-user@luc
..@gmail.com]
Sent: Friday, April 17, 2009 8:08 PM
To: java-user@lucene.apache.org
Subject: Re: IndexWriter update method
What you're missing is that the example has no unique ID, it wasn't created
with update in mind.
There's no hidden magic for Lucene knowing *what* document you w
by an
insert, so my guess is that you are correct.
Thanks again!
Billy
From: Erick Erickson [erickerick...@gmail.com]
Sent: Friday, April 17, 2009 8:07 PM
To: java-user@lucene.apache.org
Subject: Re: IndexWriter update method
What you're missing is
topDocs().scoreDocs;
> if (hits!= null && hits.length > 0) {
> // ?
> // Then this already exists and I just want to update the comments section
> }
>
> Does that make sense? Am I going about this wrong?
>
> Billy
>
>
> ___
nse? Am I going about this wrong?
Billy
From: Tim Williams [william...@gmail.com]
Sent: Friday, April 17, 2009 6:05 PM
To: java-user@lucene.apache.org
Subject: Re: IndexWriter update method
On Fri, Apr 17, 2009 at 7:27 PM, Newman, Billy wrote:
> I am looking for info on how to
On Fri, Apr 17, 2009 at 7:27 PM, Newman, Billy wrote:
> I am looking for info on how to use the IndexWriter.update method. A short
> example of how to add a document and then later update would
> be very helpful. I get lost because I can add a document with just the
> document, but I need a do
I am looking for info on how to use the IndexWriter.update method. A short
example of how to add a document and then later update would be very helpful.
I get lost because I can add a document with just the document, but I need a
document and a Term. I am not really sure what a Term is since