You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2015/04/09 15:26:13 UTC

[jira] [Assigned] (SOLR-7218) constant score query syntax

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

Yonik Seeley reassigned SOLR-7218:
----------------------------------

    Assignee: Yonik Seeley

> constant score query syntax
> ---------------------------
>
>                 Key: SOLR-7218
>                 URL: https://issues.apache.org/jira/browse/SOLR-7218
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: Trunk, 5.1
>
>         Attachments: SOLR-7218.patch
>
>
> A ConstantScoreQuery is like a boosted query, but it produces the same score for every document that matches the query. The score produced is equal to the query boost. The ^= operator is used to turn any query clause into a ConstantScoreQuery.
> Constant Score Query Examples:
> {code}
> +color:blue^=1 text:shoes
> (inStock:true text:heliosearch)^=100 native code faceting
> {code}
> Syntax rational: since boosting (multiplication) is term^value, the syntax for having a constant score can be term^=value



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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