# How to search content without duplicate

**URL:** <https://discuss.elastic.co/t/how-to-search-content-without-duplicate/82974>\
**Category:** Elasticsearch\
**Created:** [April 20, 2017, 3:37am UTC](https://discuss.elastic.co/t/how-to-search-content-without-duplicate/82974 "2017-04-20T03:37:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_wsf](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sharon\_wsf](https://discuss.elastic.co/u/Sharon_wsf)\
**Post date:** [April 20, 2017, 3:37am UTC](https://discuss.elastic.co/t/how-to-search-content-without-duplicate/82974/1 "2017-04-20T03:37:51Z")

</div>

Dear teams,

my elasticsearch is using 2.4.0

my search coding normal is as below:  
POST /news/TRKD/\_search {  
"query": { "bool": { "must": [{ "range": { "CDate": { "gt": "2017-04-19T18:23:06" , "lte": "2017-04-19T23:59:59" } } }] } }, "from": 0, "size": 100, "sort": [{ "CDate": { "order": "desc" } }]  
}

my screen will be as below:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f25a259f01ac9f1ba82b3d25187edabe957df7a3.JPG)

how to output of searching no duplicate if the filed of 'tag' found have duplicate, output only show one of them?

Thanks..

---

<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:** [May 18, 2017, 3:52am UTC](https://discuss.elastic.co/t/how-to-search-content-without-duplicate/82974/2 "2017-05-18T03:52:05Z")

</div>

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