Re: TotalHitCountCollector performance

2013-09-19 Thread Nicola Buso
Hi Uwe, thanks for the fast reply. I removed the CSQ and checked again my test, still there is mainly no difference with searching with TopFieldCollector. Just a clarification; the method getQuery(...) in my code is returning a BooleanQuery, where the user input is expanded on some of the fields

RE: TotalHitCountCollector performance

2013-09-18 Thread Uwe Schindler
Hi, The ConstantScoreQuery part is just overhead. If scores are not requested, they should not be calculated - but CSQ cannot prevent this from happening at all. It just prevent's the collector from seeing the scores. As the counting collector does not request any scores, you just add a useless