I have an object { title: 'milk', weight: '3000' }.
I would like that search 2900 return object above. Is it possible?
I expect that on index creation I can map weight to range [2800..3200], but I can not find any things like that.
If you wanted a range in the document you could make weight into something like "weight": {"min": 2800, "max": 3200} and then do a bool filter like so `"bool": {"must": [{"range": {"weight.min":{"gte":2900}}}, {"range": {"weight.max":{"lte":2900}}}]}```. I think. I've not tested it but it feels like it'd work. Be careful, though, that won't work with docs like:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.