# Show just one document on exact match

**URL:** https://discuss.elastic.co/t/show-just-one-document-on-exact-match/193525
**Category:** Elasticsearch
**Created:** [August 2, 2019, 11:54am UTC](https://discuss.elastic.co/t/show-just-one-document-on-exact-match/193525 "2019-08-02T11:54:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mihalikv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mihalikv/32/26793_2.png) [@mihalikv](https://discuss.elastic.co/u/mihalikv)
#### Post date: [August 2, 2019, 11:54am UTC](https://discuss.elastic.co/t/show-just-one-document-on-exact-match/193525/1 "2019-08-02T11:54:04Z")

</div>

Hello,  
I want to ask if it is possible to show just top results with score bigger than x(some integer value).  
For example:  
Query:

```
{
  "query": {
    "bool": {
      "should": [
        {
          "multi_match": {
            "query": "123456",
            "type": "phrase",
            "fields": ["product_no"]
          }
        },
        {
          "multi_match": {
            "query": "123456",
            "type": "phrase_prefix",
            "boost": 2000,
            "fields": ["product_no"]
          }
        }
      ]
    }
  }
}

```

Let's say that I have two documents with following product\_no = ['123456', '123456789'].  
Query will return both documents because document with product\_no = '123456789' also have some score. I am able to use min\_score but setting it can throw away good results in normal case.

Is it possible somehow show just one document when it is exact match ? Maybe some max threshold ?

---

<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: [August 30, 2019, 11:54am UTC](https://discuss.elastic.co/t/show-just-one-document-on-exact-match/193525/2 "2019-08-30T11:54:15Z")

</div>

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