You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/10/15 00:24:32 UTC

[jira] Commented: (LUCENE-2703) multitermquery scoring differences between 3x and trunk

    [ https://issues.apache.org/jira/browse/LUCENE-2703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921151#action_12921151 ] 

Robert Muir commented on LUCENE-2703:
-------------------------------------

The bug is in TermQuery(Term, int docfreq)

if i change this to:
{noformat}
  public TermQuery(Term t, int docFreq) {
    term = t;
    // this.docFreq = docFreq;
    this.docFreq = -1;
  }
{noformat}

then the test passes

> multitermquery scoring differences between 3x and trunk
> -------------------------------------------------------
>
>                 Key: LUCENE-2703
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2703
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-2703_test.patch
>
>
> try this patch with a test, that applies clean to both 3x and trunk, but fails on trunk.
> if you modify the test-data-generator to use TopTerms*BoostOnly* rewrite, then it acts like TestFuzzyQuery2, and passes.
> So the problem is in TopTermsScoringBooleanRewrite, or BooleanQuery, or somewhere else.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org