You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2009/08/26 21:57:59 UTC

[jira] Created: (LUCENE-1860) switch MultiTermQuery to "constant score auto" rewrite by default

switch MultiTermQuery to "constant score auto" rewrite by default
-----------------------------------------------------------------

                 Key: LUCENE-1860
                 URL: https://issues.apache.org/jira/browse/LUCENE-1860
             Project: Lucene - Java
          Issue Type: Improvement
    Affects Versions: 2.9
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 2.9


Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.

The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery.  FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

-- 
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


[jira] Commented: (LUCENE-1860) switch MultiTermQuery to "constant score auto" rewrite by default

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748157#action_12748157 ] 

Uwe Schindler commented on LUCENE-1860:
---------------------------------------

If we change this, should we keep the good old RangeQuery as it is (boolean rewrite)? Because there is also the deprecated ConstantScoreRangeQuery.

> switch MultiTermQuery to "constant score auto" rewrite by default
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1860
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1860
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1860.patch
>
>
> Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.
> The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery.  FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

-- 
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


[jira] Updated: (LUCENE-1860) switch MultiTermQuery to "constant score auto" rewrite by default

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-1860:
---------------------------------------

    Attachment: LUCENE-1860.patch

> switch MultiTermQuery to "constant score auto" rewrite by default
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1860
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1860
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1860.patch
>
>
> Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.
> The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery.  FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

-- 
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


[jira] Updated: (LUCENE-1860) switch MultiTermQuery to "constant score auto" rewrite by default

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-1860:
---------------------------------------

    Component/s: Search
       Priority: Minor  (was: Major)

> switch MultiTermQuery to "constant score auto" rewrite by default
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1860
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1860
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>
> Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.
> The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery.  FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

-- 
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


[jira] Commented: (LUCENE-1860) switch MultiTermQuery to "constant score auto" rewrite by default

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748213#action_12748213 ] 

Michael McCandless commented on LUCENE-1860:
--------------------------------------------

bq. should we keep the good old RangeQuery as it is (boolean rewrite)? Because there is also the deprecated ConstantScoreRangeQuery.

I think we should?  That's what it is right now (and the patch leaves it).

> switch MultiTermQuery to "constant score auto" rewrite by default
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1860
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1860
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1860.patch
>
>
> Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.
> The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery.  FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

-- 
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


[jira] Resolved: (LUCENE-1860) switch MultiTermQuery to "constant score auto" rewrite by default

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved LUCENE-1860.
----------------------------------------

    Resolution: Fixed

> switch MultiTermQuery to "constant score auto" rewrite by default
> -----------------------------------------------------------------
>
>                 Key: LUCENE-1860
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1860
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1860.patch
>
>
> Right now it defaults to scoring BooleanQuery, and that's inconsistent w/ QueryParser which does constant score auto.
> The new multi-term queries already set this default, so the only core queries this will impact are PrefixQuery and WildcardQuery.  FuzzyQuery, which has its own rewrite to BooleanQuery, will keep doing so.

-- 
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