OR query in ElasticSearch 2.0

Hi,
I don't understand what happened to the OR filter in 2.0, I understand that AND filters can be replaced with multiple filter clauses in a bool query but I don't get how to manage it with the OR condition.
Any ideas ?
Thanks

AND clauses are basically MUSTs in a boolean query and OR clauses translate
to SHOULDs.

Ivan

Thanks Ivan but that's partially true as MUST and SHOULD clauses have incidence on scoring and filter not :confused:

To do a filtered OR, you can add a bool inside the filter (of another bool) which contains all your OR'd clauses

{
    "query": {
        "bool": {
            "filter": {
                "bool": {
                    "should": [
                      {...},
                      {...},
                      {...}
                    ]
                }
            }
        }
    }
}

That's why :slight_smile:
Thanks a lot Zachary