# ElasticSearch and duplicate content

**URL:** <https://discuss.elastic.co/t/elasticsearch-and-duplicate-content/18205>\
**Category:** Elasticsearch\
**Created:** [June 19, 2014, 8:08am UTC](https://discuss.elastic.co/t/elasticsearch-and-duplicate-content/18205 "2014-06-19T08:08:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joffrey\_Hercule](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@Joffrey\_Hercule](https://discuss.elastic.co/u/Joffrey_Hercule)\
**Post date:** [June 19, 2014, 8:08am UTC](https://discuss.elastic.co/t/elasticsearch-and-duplicate-content/18205/1 "2014-06-19T08:08:32Z")

</div>

Hi all,  
i'm an elasticsearch's newbie.

I've a little problem about duplicate content in order to guess if an item  
must be inserted or updated.

Example:

- A car contains a brand, a model, a color, ... (max 10 criterias)
- in order to know if a record exists into ES, we use an algorithm with  
points system
- so if the brand exists, we count 1 point. If the brand and the model  
exist, we count 5 points, etc.
- after the search, we do a sum. If the total is high, we need to merge the  
record, otherwise, we create it.

I tried a method with bool/should match and top score but it took very long  
time (more than 2 seconds) to retrieved the datas for 8 bool term.

Do you have a better idea about my problem ? Thanks in advance for your  
help and sorry for my bad english !

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/23e8fd48-ab04-444e-bf89-7d5ab8025898%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/23e8fd48-ab04-444e-bf89-7d5ab8025898%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:21am UTC](https://discuss.elastic.co/t/elasticsearch-and-duplicate-content/18205/2 "2017-07-06T01:21:19Z")

</div>

Closed on July 6, 2017, 1:21am UTC


