# Most efficient way of querying when you do not care about scoring

**URL:** https://discuss.elastic.co/t/most-efficient-way-of-querying-when-you-do-not-care-about-scoring/29060
**Category:** Elasticsearch
**Created:** [September 10, 2015, 6:40pm UTC](https://discuss.elastic.co/t/most-efficient-way-of-querying-when-you-do-not-care-about-scoring/29060 "2015-09-10T18:40:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jelmer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jelmer/32/3550_2.png) [@jelmer](https://discuss.elastic.co/u/jelmer)
#### Post date: [September 10, 2015, 6:40pm UTC](https://discuss.elastic.co/t/most-efficient-way-of-querying-when-you-do-not-care-about-scoring/29060/1 "2015-09-10T18:40:36Z")

</div>

What is the most effective way to process complex queries ( eg queries with support for negation, and and or, like query\_string) when you do not care about the scoring ?

Does wrapping the query in a constant score query give you any benefit.

Or maybe does it make sense to wrap the query in a query filter instead ?

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [September 10, 2015, 6:54pm UTC](https://discuss.elastic.co/t/most-efficient-way-of-querying-when-you-do-not-care-about-scoring/29060/2 "2015-09-10T18:54:16Z")

</div>

> [@jelmer](#):
>
> Or maybe does it make sense to wrap the query in a query filter instead ?

The answers to all of these questions becomes easier in 2.0:  
[https://www.elastic.co/guide/en/elasticsearch/reference/master/\_query\_dsl\_changes.html#\_queries\_and\_filters\_merged](https://www.elastic.co/guide/en/elasticsearch/reference/master/_query_dsl_changes.html#_queries_and_filters_merged)

Before 2.0 you are better off using a `filtered` query and putting everything that you want in the `filter`, making everything a filter.

---

<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:51pm UTC](https://discuss.elastic.co/t/most-efficient-way-of-querying-when-you-do-not-care-about-scoring/29060/3 "2017-07-05T23:51:04Z")

</div>


