Issue Details (XML | Word | Printable)

Key: LUCENE-1302
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Minor Minor
Assignee: Doron Cohen
Reporter: Doron Cohen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

explain should not mask negative scores

Created: 10/Jun/08 01:09 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Query/Scoring
Affects Version/s: None
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works lucene-1302-explain-negative.patch 2008-06-10 01:25 PM Doron Cohen 0.4 kB

Lucene Fields: Patch Available
Resolution Date: 10/Jun/08 07:50 PM


 Description  « Hide
Explanation.isMatch() returns false for 0 or negative scores.
Hence negative scores are omitted from the explanation.
This causes, when using e.g. BoostingTermQuery with negative boosts, a difference between the collected doc score and the score shown by explain().

A word on the usage of this - BTQ with negative boosts is useful for "punishing" documents for containing a term. It also allows all sorts of tricks with multiplying query boost by the BTQ boost, so you get a positive score if both boosts have the same sign but negative otherwise. - I am sure there other uses as well.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.