Re: TermEnum with deleted dccuments

2009-05-10 Thread Antony Bowesman
Hi Mike, Thanks for the response. I looked at that issue, but my case is trivial to fix. I just keep the Set of terms I have deleted and ignore those during my second interation. Thanks Antony Michael McCandless wrote: This is known & expected. Lucene does not update the terms dictionar

Re: TermEnum with deleted dccuments

2009-05-07 Thread Michael McCandless
This is known & expected. Lucene does not update the terms dictionary (meaning which terms are in the index, and their frequency) in response to deleted docs. It does update TermDocs enumeration, ie once you get the TermDocs for a given term and step through its docs, the deleted docs will not be

TermEnum with deleted dccuments

2009-05-06 Thread Antony Bowesman
I am merging Index A to Index B. First I read the terms for a particular field from index A and some of the documents in A get deleted. I then enumerate the terms on a different field also in index A, but the terms from the deleted document are still present. The termEnum.docFreq() also retu