How to store disjoint date ranges and then search for a specific range

Hey,

wouldnt you be able to search for available dates by just making sure that the data is set with a query like this

GET test/_search
{
  "query": {
    "bool": {
      "filter": [
        { "term": { "availability": "2016-07-01" } },
        { "term": { "availability": "2016-07-02" } }
      ]
    }
  }
}

Instead of a range query, just add each required day manually?

--Alex