re-upping that one because I could not find a solu...
# community-help
t
re-upping that one because I could not find a solution to searching for multiple range intersections. I basically need element by element matching for an [] instead of collapsing all.
Copy code
{
  "ranges": [
    {
      "min": 0,
      "max": 10
    },
    {
      "min": 20,
      "max": 50
    }
  ]
}
If I use my initial example of 15..19 (no match), what I’m trying to achieve is checking that either one of 15 or 19 is within one of the document intervals.
Copy code
"filter_by": "(ranges.min:<11 &&  ranges.max:>11) || (ranges.min:<19 &&  ranges.max:>19)"
but the reduce should happen item by item instead of being on the already reduced arrays of the mins and the maxs.