# Filter vs Query?

**URL:** <https://discuss.elastic.co/t/filter-vs-query/81903>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 3:12am UTC](https://discuss.elastic.co/t/filter-vs-query/81903 "2017-04-11T03:12:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)\
**Post date:** [April 11, 2017, 3:12am UTC](https://discuss.elastic.co/t/filter-vs-query/81903/1 "2017-04-11T03:12:36Z")

</div>

Question on viability of relevancy boosting without sorting...

Here is the idea, if I switch all queries to filtered queries (bool.must or bool.filter) if the query does not contain a sort, would this is "safe" ? Are there cases when a query boost can occur - change the order when there is not a sort? I assume Sort = score would be required in order to see the affect of a query / vs a filter - right?

Thanks.

---

<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:** [May 9, 2017, 3:18am UTC](https://discuss.elastic.co/t/filter-vs-query/81903/2 "2017-05-09T03:18:13Z")

</div>

Closed on May 9, 2017, 3:18am UTC

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