> -----Original Message----- > From: Paul Allan Hill [mailto:p...@metajure.com] > Sent: Wednesday, February 08, 2012 2:42 PM > To: java-user@lucene.apache.org > 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 DisjuncitonMaxScorer.score() ... 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. -Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org