title: ElasticSearch - Increase distance if no results
body: <p>Would it be possible to create query that would increase the <code>distance</code> field when no results are found? </p>
  
  <p>Here's an example of a query that will return whether there's a match or not:</p>
  
  <pre><code>{
      "query": {
          "bool": {
              "filter": {
                  "geo_distance": {
                      "distance": "100km",
                      "location": {
                          "lat": 40,
                          "lon": -7
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>But I would like that Elasticsearch could keep looking until at least 1  item is found.</p>
  
  <p>I could increase the value programmatically and make a new query with <code>"distance": "200km"</code> and so on... until I find something, but I would like to make a query that would do that automatically.</p>
  
  <p>Elasticsearch version: 6.2</p>