lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lingaraju" <lingaraju.shambulinga...@infactindia.com>
Subject docfaq of IndexReader is showing the deleted document also
Date Tue, 27 Jul 2004 13:21:07 GMT

I used the below code

IndexReader reader = IndexReader.open("c:/index");
Term term = new Term("contents","books");
int i=reader.docFreq(term);
System.out.println("docfaq:"+i);
reader.delete(term);
i=reader.docFreq(term);
System.out.println("docfaq:"+i);
reader.close();

reader.docFreq method is returning 10 count before delete even after delete
also count is showing same why

Regards
Raju



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message