lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-451) BooleanQuery explain with boost==0
Date Wed, 21 Jun 2006 22:07:30 GMT
     [ http://issues.apache.org/jira/browse/LUCENE-451?page=all ]

Hoss Man updated LUCENE-451:
----------------------------

    Attachment: bq.containing.clause.with.zero.boost.tests.patch

slight bug in test2 - the old method of checking the results using Hits had a differnet set
of matching docs because of negatively scoring matches.  This version makes sense when using
a HitCollector.

> BooleanQuery explain with boost==0
> ----------------------------------
>
>          Key: LUCENE-451
>          URL: http://issues.apache.org/jira/browse/LUCENE-451
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: CVS Nightly - Specify date in submission
>     Reporter: Yonik Seeley
>     Assignee: Hoss Man
>     Priority: Minor
>  Attachments: bq.containing.clause.with.zero.boost.tests.patch, bq.containing.clause.with.zero.boost.tests.patch,
bq.containing.clause.with.zero.boost.tests.patch
>
> BooleanWeight.explain() uses the returned score of subweights to determine if a clause
matched.
> If any required clause has boost==0, the returned score will be zero and the explain
for the entire BooleanWeight will be simply  Explanation(0.0f, "match required").
> I'm not sure what the correct fix is here.  I don't think it can be done based on score
alone, since that isn't how scorers work.   Perhaps we need a new method "boolean Explain.matched()"
that returns true on a match, regardless of what the score may be? 
> Related to the problem above, even if no boosts are zero, it it sometimes nice to know
*why* a particular query failed to match.  It would mean a longer explanation, but maybe we
should include non matching explains too?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message