Re: Deletes and Hits

2005-05-04 Thread Doug Cutting
Scott Smith wrote: Any other solutions or comments? Use a different IndexReader for searching than you use for deletions? Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Deletes and Hits

2005-05-04 Thread Scott Smith
("The document you are looking for no longer exists in the system") to the user. Any other solutions or comments? -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 8:47 PM To: java-user@lucene.apache.org Subj

Re: Deletes and Hits

2005-04-28 Thread Otis Gospodnetic
Let's see: import org.apache.lucene.search.*; import org.apache.lucene.index.*; import org.apache.lucene.analysis.SimpleAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; public class HitDocDeleteTest { static String indexDir = "/tmp/hddt"; st

Deletes and Hits

2005-04-28 Thread Scott Smith
Suppose I do a search and get a hit list. Before I access the hit list, my delete routine (running in another thread) comes along and deletes some documents. What happens if I now try to access documents that have been deleted? Scott