# FilteredQuery slower than query and filter?

**URL:** https://discuss.elastic.co/t/filteredquery-slower-than-query-and-filter/1105
**Category:** Elasticsearch
**Created:** [May 21, 2015, 3:15pm UTC](https://discuss.elastic.co/t/filteredquery-slower-than-query-and-filter/1105 "2015-05-21T15:15:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Camilo\_Sierra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/camilo_sierra/32/14397_2.png) [@Camilo\_Sierra](https://discuss.elastic.co/u/Camilo_Sierra)
#### Post date: [May 21, 2015, 3:20pm UTC](https://discuss.elastic.co/t/filteredquery-slower-than-query-and-filter/1105/2 "2015-05-21T15:20:49Z")

</div>

this to querys don't give you the same results, if you use filtered your aggregation and hits will be filter by (query and filter) in the second request, the hits be filter by your (filter + query) BUT the aggregatios will be use only your (query)!

@kimchy in this post explains the difference : [What is the difference between filtered query and regular query with filter?](https://discuss.elastic.co/t/what-is-the-difference-between-filtered-query-and-regular-query-with-filter/413)

---

_[View the full topic](https://discuss.elastic.co/t/filteredquery-slower-than-query-and-filter/1105)._
