<p dir="auto">The range query support  'lte/lt/gt/gte', will the range aggregation support too?<br>
For price of goods, I want to use range [0,50], [50,100], ...</p>
<h3 dir="auto">Problem</h3>
<p dir="auto">Right now to prevent duplicates in index you have two options:</p>
<ul dir="auto">
<li>generate id based on document content in your application. Problems:
<ul dir="auto">
<li>simple methods (md5 checksum of field or fields for example) work only with 1:1 matches</li>
<li>more complex methods require document processing and that forces you to duplicate parts of ES in your app (stemming, stopwords etc) and even then you only detect a duplicate if end result matches 1:1 whatever you have in ES</li>
</ul>
</li>
<li>search for each document in ES before inserting it. Problems:
<ul dir="auto">
<li>doesn't work with bulk inserts (and is unusable in many places just because of this)</li>
<li>at least doubles item-by-item insert time (2 separate requests)</li>
<li>isn't atomic</li>
</ul>
</li>
</ul>
<h3 dir="auto">Possible solution</h3>
<p dir="auto">Feature similar to Solr de-duplication <a href="https://cwiki.apache.org/confluence/display/solr/De-Duplication" rel="nofollow">https://cwiki.apache.org/confluence/display/solr/De-Duplication</a><br>
but instead of simple signatures offered by Solr, something using <a href="https://github.com/larsga/Duke">https://github.com/larsga/Duke</a> (or parts of it)<br>
There is already a plugin doing this for search <a href="https://github.com/YannBrrd/elasticsearch-entity-resolution">https://github.com/YannBrrd/elasticsearch-entity-resolution</a></p>