# Detect duplication by attribute

**URL:** <https://discuss.elastic.co/t/detect-duplication-by-attribute/5917>\
**Category:** Elasticsearch\
**Created:** [November 19, 2011, 7:28am UTC](https://discuss.elastic.co/t/detect-duplication-by-attribute/5917 "2011-11-19T07:28:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)\
**Post date:** [November 19, 2011, 7:28am UTC](https://discuss.elastic.co/t/detect-duplication-by-attribute/5917/1 "2011-11-19T07:28:18Z")

</div>

Hi there,  
I want to search for the document based on some particular  
attribute. Need to exclude all duplicate document by that or any particular  
attribute. Is there any thing i can try to find desired results.  
Please help me as soon as possible.

Thank you.

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [November 19, 2011, 3:05pm UTC](https://discuss.elastic.co/t/detect-duplication-by-attribute/5917/2 "2011-11-19T15:05:40Z")

</div>

You'll need to implement on the client side yourself as this issue is  
not implemented yet:

> <https://github.com/elastic/elasticsearch/issues/256>
>
> Ability to collapse on a field. For example, I want the most relevant result fro…m all different report types. Or similarly, the most recent result of each report type. Or maybe, I want to de-dup on headline. 
> 
> So, the sort order would dictate which one from the group is returned. Similar to what is discussed here:
> http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/
> 
> From my understanding, it seems that in order for field collapsing to be efficient, the result set must be relatively small.
> 
> This is also referred to as "Combine" on some other search products.

Peter.

On 19 Nov., 08:28, Narinder Kaur [narinder.k...@izap.in](mailto:narinder.k...@izap.in) wrote:

> Hi there,  
> I want to search for the document based on some particular  
> attribute. Need to exclude all duplicate document by that or any particular  
> attribute. Is there any thing i can try to find desired results.  
> Please help me as soon as possible.
> 
> Thank you.

---

<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 6, 2017, 3:48am UTC](https://discuss.elastic.co/t/detect-duplication-by-attribute/5917/3 "2017-07-06T03:48:12Z")

</div>


