# \_boost not applied to match\_all

**URL:** https://discuss.elastic.co/t/-boost-not-applied-to-match-all/6201
**Category:** Elasticsearch
**Created:** [December 20, 2011, 10:03pm UTC](https://discuss.elastic.co/t/-boost-not-applied-to-match-all/6201 "2011-12-20T22:03:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kellan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kellan/32/3029_2.png) [@Kellan](https://discuss.elastic.co/u/Kellan)
#### Post date: [December 20, 2011, 10:03pm UTC](https://discuss.elastic.co/t/-boost-not-applied-to-match-all/6201/1 "2011-12-20T22:03:57Z")

</div>

The \_boost value for a document does not get applied if the query is a  
"match\_all". Is there a way to apply filters (because they don't  
change the boost), and then \_score the results solely based on the  
documents' boost values? When I do a match\_all query with filters, all  
of the documents have a \_score of 1.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [December 21, 2011, 3:45am UTC](https://discuss.elastic.co/t/-boost-not-applied-to-match-all/6201/2 "2011-12-21T03:45:47Z")

</div>

You can specify in the match\_all query a `norms_field` (you can point it to  
\_all) which will cause it to take that field boosting into account (but  
slower executing).

On Wed, Dec 21, 2011 at 12:03 AM, Kellan [wampleek@gmail.com](mailto:wampleek@gmail.com) wrote:

> The \_boost value for a document does not get applied if the query is a  
> "match\_all". Is there a way to apply filters (because they don't  
> change the boost), and then \_score the results solely based on the  
> documents' boost values? When I do a match\_all query with filters, all  
> of the documents have a \_score of 1.

---

<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 6, 2017, 3:44am UTC](https://discuss.elastic.co/t/-boost-not-applied-to-match-all/6201/3 "2017-07-06T03:44:49Z")

</div>


