lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Allan Hill <>
Subject RE: Please explain DisjunctionMaxQuery JavaDoc.
Date Wed, 08 Feb 2012 23:35:32 GMT

> -----Original Message-----
> From: Paul Allan Hill []
> Sent: Wednesday, February 08, 2012 2:42 PM
> To:
> Subject: Please explain DisjunctionMaxQuery JavaDoc.
> What the heck does is the JavaDoc for DisjunctionMaxQuery saying:
>[...] plus a tie
> breaking increment 

Oh my, the 1st problem is the class description discusses "tie breaking increment", but the
API says tie breaking multiplier.
Then wondering around in the code I find
return scoreMax + (scoreSum - scoreMax) * tieBreakerMultiplier;
Which is upon examination IS " the score of each non-maximum disjunct for a document is multiplied
by this weight and added into the final score." As described in the c'tor of DisjunctionMaxQuery.
But what this has anything to do with any idea of a "tie" anywhere in this query I don't know.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message