I have to find the matching documents which have the string, for example: \"sky\", within some \"key\" range. When I write separate match and range query, I get the output f
You need to do it like this using a bool/must query
bool/must
res = es.search(index="dummy", body={ "from": 0, "size": 0, "query": { "bool": { "must": [ { "range": { "key": { "gte": "1000" } } }, { "match": { "word": "sky" } } ] } } })