On Thu, Jun 16, 2011 at 3:23 PM, Gabriele Kahlout
<gabri...@mysimpatico.com> wrote:
>> I'm trying to assess the impact of coord (search-time) on Qtime. In one
> implementation coord returns 1, while in another it's actually computed.

On query time?

coord should be really cheap (unless your impl does something like
calculate a million digits of pi), as it is not actually computed
per-document.
instead, the result of all possible coord factors (e.g. 1/5, 2/5, 3/5,
4/5, 5/5) is computed up-front by BooleanQuery's scorers into a table.

See 
http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/BooleanScorer.java
and 
http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/BooleanScorer2.java

Reply via email to