# Query Difference

**URL:** <https://discuss.elastic.co/t/query-difference/44755>\
**Category:** Elasticsearch\
**Created:** [March 17, 2016, 6:36pm UTC](https://discuss.elastic.co/t/query-difference/44755 "2016-03-17T18:36:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piyush](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@piyush](https://discuss.elastic.co/u/piyush)\
**Post date:** [March 17, 2016, 6:36pm UTC](https://discuss.elastic.co/t/query-difference/44755/1 "2016-03-17T18:36:21Z")

</div>

Dear Team,  
I followed documentation and trying to understand queries and here is my confusion:

1. Query Set A returns appropriate results (where \_type=filesystem and fs.used\_p=0

2. But all "Query Set B" query results are returning \_type=process and others...there is no \_type=filesystem in the result at all.

Please explain where my understanding is wrong?

\*it's standard topbeat index+document

Query Set A:  
get topbeat-2016.03.17/\_search?q=fs.used\_p=0.56

Query Set B:  
get topbeat-2016.03.17/\_search  
{"query": {"fs.used\_p":0.56}}

get topbeat-2016.03.17/\_search  
{"filter": {"fs.used\_p":0.56}}

get topbeat-2016.03.17/\_search  
{"query": {"match\_all": {}},  
"filter": {"fs.used\_p":0.56}  
}

Regards...

---

<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:** [July 5, 2017, 11:07pm UTC](https://discuss.elastic.co/t/query-difference/44755/2 "2017-07-05T23:07:30Z")

</div>

Closed on July 5, 2017, 11:07pm UTC


