ES 0.90 Multiple Numeric Range filters within boolean.should return incorrect results

I have a build of 0.9 from source (3-4 days ago) and it does not calculate
numeric filters correctly when combined in bool should
The number of hits in the following query should be 35 (16 from the 1st
range and 19 from the 2nd). Works correctly in 0.20.5 but in 0.9 it returns
wrong number of hits which is also different depending on which range
filter is listed first in the bool filter (the numbers are 32 and 28
depending on which range is first)

when removing one of the ranges from bool.should the calculations are
correct. The calculations are also correct when using the same ranges in
Range facet

I submitted https://github.com/elasticsearch/elasticsearch/issues/2826

{
"query": {
"match_all": {}
},
"from": 0,
"filter": {
"bool": {
"should": [
{
"numeric_range": {
"money.totals.obligationTotal": {
"from": 20000000,
"to": 50000000,
"include_upper": false
}
}
},
{
"numeric_range": {
"money.totals.obligationTotal": {
"from": 50000000,
"to": 100000000,
"include_upper": false
}
}
}
]
}
}
}

--
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.
For more options, visit https://groups.google.com/groups/opt_out.