lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Exploiting a whole lot of memory
Date Thu, 10 Oct 2013 18:51:19 GMT
On Thu, Oct 10, 2013 at 2:19 PM, Benson Margulies <benson@basistech.com> wrote:

> Profile shows a lot of time in   org.apache.lucene.search.BooleanScorer$
> BooleanScorerCollector.collect(int).

Ahh, that.  We tried to optimize it in LUCENE-4366 but could not get
clear gains...

It's expected to be a hotspot: it "folds in" one hit from one term in
your BooleanQuery.  It also calls .score() to compute the score.

Are you using any prohibited (MUST_NOT) clauses?  Today we (stupidly)
score hits for those ...

Mike McCandless

http://blog.mikemccandless.com

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


Mime
View raw message