Re: Deleted document terms

2008-08-26 Thread Michael McCandless
Normally an ID should be indexed as Field.Index.UN_TOKENIZED. Mike John Patterson wrote: That was the problem - the id was not tokenized. Thanks for your help. Kalani Ruwanpathirana wrote: Hi John, Are you sure you made the id "tokenized" while indexing? I could overcome this issu

Re: Deleted document terms

2008-08-26 Thread John Patterson
That was the problem - the id was not tokenized. Thanks for your help. Kalani Ruwanpathirana wrote: > > Hi John, > > Are you sure you made the id "tokenized" while indexing? I could overcome > this issue by having a tokenized field, which was used for the deletion as > below. > > document.ad

Re: Deleted document terms

2008-08-26 Thread Kalani Ruwanpathirana
Hi John, Are you sure you made the id "tokenized" while indexing? I could overcome this issue by having a tokenized field, which was used for the deletion as below. document.add(new Field("id", id, Field.Store.YES, *Field.Index.TOKENIZED*)); Thanks On Tue, Aug 26, 2008 at 2:15 PM, Michael M

Re: Deleted document terms

2008-08-26 Thread Michael McCandless
John Patterson wrote: I just discovered some strange behaviour with deleted documents. I do a search for documents with a certain query and delete one using IndexWriter.deleteDocuments(Term) using a key for the term. Then I repeat the search and the document is still there because I use