# Search query doesnt working

**URL:** <https://discuss.elastic.co/t/search-query-doesnt-working/225191>\
**Category:** Elasticsearch\
**Created:** [March 26, 2020, 12:23pm UTC](https://discuss.elastic.co/t/search-query-doesnt-working/225191 "2020-03-26T12:23:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bahadir\_Eyuboglu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bahadir_eyuboglu/32/64010_2.png) [@Bahadir\_Eyuboglu](https://discuss.elastic.co/u/Bahadir_Eyuboglu)\
**Post date:** [March 26, 2020, 12:23pm UTC](https://discuss.elastic.co/t/search-query-doesnt-working/225191/1 "2020-03-26T12:23:42Z")

</div>

I have 2 search query one is range query and other one is fuzzy query,  
i am sending queries trough python so my functions is look like

for range query  
'''  
resp2 = es.search(index="restaurants", doc\_type="docket",body={"\_source": castList,"from" : 0, "size" : 10000, "query": { "range": { atama: { "gte": float(selectedInterval[i]), "lte": float(selectedInterval2[i]) } } }})  
'''

for fuzzy query  
'''  
resp2 = es.search(index="restaurants",doc\_type="docket",body={"\_source": castList,"from" : 0, "size" : 10000, "query": { "fuzzy": { atama:{"value":selectedInterval[i], "fuzziness": "AUTO"} } } } )  
'''

now castList contains the fieldnames that i want to see in my output,  
selectedInterval is numbers or text that i get from my user, and atama is the field name that i kept for the spesific query

in range query it just returns everything,  
and fuzy query returns nothing,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 23, 2020, 12:23pm UTC](https://discuss.elastic.co/t/search-query-doesnt-working/225191/2 "2020-04-23T12:23:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
