You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Doron Cohen (JIRA)" <ji...@apache.org> on 2007/06/03 10:57:15 UTC

[jira] Updated: (LUCENE-903) FilteredQuery explanation inaccuracy with boost

     [ https://issues.apache.org/jira/browse/LUCENE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doron Cohen updated LUCENE-903:
-------------------------------

    Attachment: lucene-903.patch

Attached lucene-903.patch change the explanation test in CheckHits to verify that the explanation value matches the explanation details. This new test makes assumptions on the description of an explanation that has multi sub-details, which might be controversial: the description is assumed to comply with one of:
  - end with "product of:"
  - end with "sum of:"
  - end with "sum of:"
  - contain "max plus <x> times others" (where <x> is float)
While this seems to cover all the current scoring combinations, future scorers might not fit in.
We can always expand this list of course.

With this check, TestSimpleExplanations fails for FilteredQuery - testFQ6(). 
Fix included.

Also failing is TestBoostingTermQuery, just because its explanation had no "product of:".
Fix included.

All tests pass.

> FilteredQuery explanation inaccuracy with boost
> -----------------------------------------------
>
>                 Key: LUCENE-903
>                 URL: https://issues.apache.org/jira/browse/LUCENE-903
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.2
>            Reporter: Doron Cohen
>            Assignee: Doron Cohen
>            Priority: Minor
>             Fix For: 2.2
>
>         Attachments: lucene-903.patch
>
>
> The value of explanation is different than the product of its part if boost > 1.
> This is exposed after tightening the explanation check (part of LUCENE-446).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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