# How to search one certain field's value with not unique results

**URL:** <https://discuss.elastic.co/t/how-to-search-one-certain-fields-value-with-not-unique-results/149531>\
**Category:** Elasticsearch\
**Created:** [September 22, 2018, 4:11am UTC](https://discuss.elastic.co/t/how-to-search-one-certain-fields-value-with-not-unique-results/149531 "2018-09-22T04:11:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesjin](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jamesjin](https://discuss.elastic.co/u/jamesjin)\
**Post date:** [September 22, 2018, 4:11am UTC](https://discuss.elastic.co/t/how-to-search-one-certain-fields-value-with-not-unique-results/149531/1 "2018-09-22T04:11:49Z")

</div>

Hi,  
Need some advise.  
I have indexed documents in elasticsearch, now i want to search all results with one certain field value with all related document, like following if i search for reportId=12345, the results will have several documents related, how can i use one api to get results with not unique on certain field

```
    POST myindex/type/_search
    {
        "query": {
          "match": {
            "reportId": "12345"
          }
        }
}
```

---

<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:** [October 20, 2018, 4:11am UTC](https://discuss.elastic.co/t/how-to-search-one-certain-fields-value-with-not-unique-results/149531/2 "2018-10-20T04:11:51Z")

</div>

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