Hi all I have following pieces of code (simplified for the simplicity sake):
1: new TermsFilter( termsList:[ new Term( 'id', '111' ) ] ).bits( indexReader ).cardinality() 2: indexReader.docFreq( new Term( 'id', '111' ) ) The problem with the second one are the 'delayed' deletes, so it doesn't give the exact numbers, while the 1st is satisfied with indexReader.reopen() Which one is faster? Can I replace the 2nd one with the 1st and still get the same performance? Thanks in advance ----- Konstantyn Smirnov, CTO http://www.poiradar.ru www.poiradar.ru http://www.poiradar.com.ua www.poiradar.com.ua http://www.poiradar.com www.poiradar.com http://www.poiradar.de www.poiradar.de -- View this message in context: http://www.nabble.com/Performance-diffs-between-filter.bits%28%29-and-searcher.docFreq%28%29-tp25186776p25186776.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org