Re: Update or Delete Document for Lucene 1.4.x

2006-04-03 Thread hu andy
IndexReader.delete(int docNum) or IndexReader.delete(Term term) 2006/4/1, Don Vaillancourt <[EMAIL PROTECTED]>: > > Hi All, > > I need to implement the ability to update one document within a Lucene > collection. > > I haven't been able to find anything in the API. Is there a way to > update one

RE: Regarding Indexes

2006-04-03 Thread Mike Streeton
When doing this use a filter to restrict the query results to just those for a users company. This will not affect the ranking then. Mike www.ardentia.com the home of NetSearch -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 20:33 To: java-user@luce

RE: Should I reindex with remove then add or can I add then remove?

2006-04-03 Thread Sindri Traustason
Hi again I guess I'll have to rephrase the question. Is it ok to store a document number returned by TermDocs.doc() during one IndexWriter.addDocument() and then performing a IndexReader.delete() using that document number? Sindri > -Original Message- > From: Sindri Traustason [mailto:[