# Apply function score after filter

**URL:** https://discuss.elastic.co/t/apply-function-score-after-filter/61717
**Category:** Elasticsearch
**Created:** [September 28, 2016, 3:10pm UTC](https://discuss.elastic.co/t/apply-function-score-after-filter/61717 "2016-09-28T15:10:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gm42](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gm42/32/11804_2.png) [@gm42](https://discuss.elastic.co/u/gm42)
#### Post date: [September 28, 2016, 3:10pm UTC](https://discuss.elastic.co/t/apply-function-score-after-filter/61717/1 "2016-09-28T15:10:57Z")

</div>

I would like to apply function score only **after** a regular filter.

Is this somehow possible?  
So far it looks like I can only specify one query (the function score query).

I have been trying to hack this with a min\_score of 1 and "first" function score filters that return 0 for what I do not want, but it just doesn't seem right.

---

<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, 10:16pm UTC](https://discuss.elastic.co/t/apply-function-score-after-filter/61717/2 "2017-07-05T22:16:36Z")

</div>


