Re: Performance diffs between filter.bits() and searcher.docFreq()

2009-09-02 Thread Konstantyn Smirnov
hossman wrote: > > "the second", and "no" > Thanks for that. Concerning the *theoretical* performance difference, for the mid-size index, what will it be in % roughly? Are there any way to make indexReader.docFreqs() reflect the changes faster, i.e. without the need to optimize()? - Kon

Re: Performance diffs between filter.bits() and searcher.docFreq()

2009-09-01 Thread Chris Hostetter
: new TermsFilter( termsList:[ new Term( 'id', '111' ) ] ).bits( indexReader : ).cardinality() ... : indexReader.docFreq( new Term( 'id', '111' ) ) ... : Which one is faster? Can I replace the 2nd one with the 1st and still get : the same performance? "the second", and "no" -Ho

Performance diffs between filter.bits() and searcher.docFreq()

2009-08-28 Thread Konstantyn Smirnov
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