lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: coordination factor question!
Date Sun, 09 Jan 2005 22:19:22 GMT
On Sunday 09 January 2005 23:02, Erik Hatcher wrote:
> Yes, coord() can return zero.  The score (for that clause) would then 
> be zero (though not null).
> 
> 	Erik
> 
> On Jan 9, 2005, at 4:15 PM, ABDOU Samir wrote:
> 
> > Hello,
> >
> > Is it possible to the coordination factor computed in the class 
> > BooleanScorer to have a zero value?
> >
> > Look at the method computeCoordFactors():
> >
> >  private final void computeCoordFactors() {
> >     coordFactors = new float[maxCoord];
> >     for (int i = 0; i < maxCoord; i++)
> >       coordFactors[i] = getSimilarity().coord(i, maxCoord-1);
> >   }
> > When i=0 the computed coordination factor will have a zero value. The 
> > score then can be null !!!

However, 0 not normally used, as coordFactors is
indexed by the number of matching clauses, which is at least 1.
See BooleanScorer.Bucket.coord in the source code.

Regards,
Paul Elschot.


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


Mime
View raw message