Constant Score Query & Bool Query

Hi Guys,

Quick question regarding scoring when ConstantScoreQuery & Bool Query are
used in conjunction

So here is the query

{

"from": 0,

"size": 10,

"explain": false,

"sort": ["_score"],

"query": {

    "filtered": {

        "query": {

            "bool": {

                "should": [{

                    "constant_score": {

                        "query": {

                            "match": {

                                "_all": {

                                    "query": "test"

                                }

                            }

                        },

                        "boost": 1.0

                    }

                }, {

                    "constant_score": {

                        "query": {

                            "match": {

                                "_all": {

                                    "query": "check"

                                }

                            }

                        },

                        "boost": 1.0

                    }

                }]

            },

            "disable_coord": 1

        },

        "filter": [{

            "or": [{

                "query": {

                    "match": {

                        "_all": {

                            "query": "test"

                        }

                    }

                }

            }, {

                "query": {

                    "match": {

                        "_all": {

                            "query": "check"

                        }

                    }

                }

            }]

        }]

    }

}

}

Shouldn't the above query either return a score of either 1 OR 2 why is it
returning score of lets say 1.4 if I am wrapping the sub queries with a
constant score query?

Regards
Shawn

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b749780a-23f3-4e1d-bdea-b6d59c9507e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.