# Filter can generate \_score other than 1?

**URL:** <https://discuss.elastic.co/t/filter-can-generate--score-other-than-1/37603>\
**Category:** Elasticsearch\
**Created:** [December 18, 2015, 9:22pm UTC](https://discuss.elastic.co/t/filter-can-generate--score-other-than-1/37603 "2015-12-18T21:22:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyunam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kyunam/32/3576_2.png) [@kyunam](https://discuss.elastic.co/u/kyunam)\
**Post date:** [December 18, 2015, 9:22pm UTC](https://discuss.elastic.co/t/filter-can-generate--score-other-than-1/37603/1 "2015-12-18T21:22:54Z")

</div>

I saw this paragraph in Elasticsearch Guide -

> “Relevance is not just about full-text search, though. It can equally be applied to yes/no clauses, where the more clauses that match, the higher the \_score."

I tried bool filter with multiple term filters but still generated \_score = 1.

Can you give me one example that will make me understand the above paragraph?

thanks,  
Q

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 21, 2015, 10:10pm UTC](https://discuss.elastic.co/t/filter-can-generate--score-other-than-1/37603/2 "2015-12-21T22:10:47Z")

</div>

Something like:

```auto
{
  "bool": {
    "should": [
      { "constant_score": { "term": { "tags": "foo" } } },
      { "constant_score": { "term": { "tags": "bar" } } }
    ]
  }
}

```

In that case the score will only depends on the tags that exist in the documents, not about term frequency, document frequency, or any other thing that are usually leveraged for full text scoring.

---

<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:29pm UTC](https://discuss.elastic.co/t/filter-can-generate--score-other-than-1/37603/3 "2017-07-05T23:29:27Z")

</div>

Closed on July 5, 2017, 11:29pm UTC


