RE: IndexWriter update method

2009-04-21 Thread Newman, Billy
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> *

Re: IndexWriter update method

2009-04-21 Thread Doron Cohen
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.

Re: IndexWriter update method

2009-04-20 Thread Erick Erickson
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

RE: IndexWriter update method

2009-04-20 Thread Newman, Billy
..@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

RE: IndexWriter update method

2009-04-17 Thread Newman, Billy
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

Re: IndexWriter update method

2009-04-17 Thread Erick Erickson
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 > > > ___

RE: IndexWriter update method

2009-04-17 Thread Newman, 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

Re: IndexWriter update method

2009-04-17 Thread Tim Williams
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