On 3/6/07, Ted <[EMAIL PROTECTED]> wrote: > I encountered another problem: > > After I removed docs from the index, the doc_freq returned by > IndexReader.terms is not updated. It always shows the old number or > bigger number after more docs with that term is added. > So it looks like the doc_freq is not updated corrected on removal of a > doc.
This is impossible to fix without ruining performance. To fix this problem I would basically need to optimize the index after every deletion. In fact, you can do this yourself if you like. Just optimize the index whenever you need to rely on the doc frequency being correct and you have possible deletions in the index. Cheers, Dave -- Dave Balmain http://www.davebalmain.com/ _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

