Re: IndexWriter.deleteDocuments(term) deletes everything

2007-03-27 Thread Roger Keays
Roger Keays wrote: Hi there, I'm trying to delete a single document by using its uuid field: uuid = new Term("uuid", item.getUuid().toString()); writer.deleteDocuments(uuid); writer.close(); However, it appears that this operation is deleting *every* document, whether the uuid mat

Re: IndexWriter.deleteDocuments(term) deletes everything

2007-03-27 Thread Doron Cohen
Hi Roger, The method usage seems correct to me. Are you saying that search with TermQuery(Term("uuid","76")) returns only one of many existing documents, but deleteDocuments(Term("uuid","76")) deletes all docs? (also docs not returned by the search for this term?) Could you send here a small progr