title: How to solve the Elasticsearch failing when searching by LocalDate.MAX?
body: <p>I'm using Spring Data Elasticsearch to search for something between <code>2010-01-01</code> and <code>LocalDate.MAX</code> which fails with:</p>
  <pre><code>nested: ElasticsearchException[Elasticsearch exception [type=arithmetic_exception, reason=long overflow]]
  </code></pre>
  <p>Having <code>springDataElasticsearchRepository.findByAgeBetween(startLocalDate, endLocalDate)</code>.</p>
  <p>What is the maximum date Elasticsearch accepts or how should otherwise avoid this error?</p>