How to query elasticsearch for greater than and less than? : <p>I want to get values between 1000 and 2000. I tried this query:</p>

<pre><code>{
    "query": {
        "bool": {
            "filter": [{
                "range": {
                    "price": {
                        "gte": 1000
                    },
                    "price": {
                        "lte": 2000
                    }
                }
            }]
        }
    }
}
</code></pre>

<p>But this doesn't give satisfactory results. Greater than works fine. I am using elasticsearch v6.3. Please help with solution for both inclusive and exclusive of both values.</p>
