# Filter\_duplicate\_text doesn't run on background

**URL:** <https://discuss.elastic.co/t/filter-duplicate-text-doesnt-run-on-background/181200>\
**Category:** Elasticsearch\
**Created:** [May 15, 2019, 12:53pm UTC](https://discuss.elastic.co/t/filter-duplicate-text-doesnt-run-on-background/181200 "2019-05-15T12:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eran\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_h/32/46227_2.png) [@Eran\_H](https://discuss.elastic.co/u/Eran_H)\
**Post date:** [May 15, 2019, 12:53pm UTC](https://discuss.elastic.co/t/filter-duplicate-text-doesnt-run-on-background/181200/1 "2019-05-15T12:53:24Z")

</div>

When setting `"filter_duplicate_text": true` in `significant_text` aggregation, it changes the count only for the `doc_count` and not for the `bg_count`.  
Meaning the score will count documents that the word appear in as documents that the word doesn't appear in.

This is problematic as a word that appears a lot in duplicated texts has a significantly lower score than it should.

What are your thoughts regarding this?

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:** [June 12, 2019, 12:53pm UTC](https://discuss.elastic.co/t/filter-duplicate-text-doesnt-run-on-background/181200/2 "2019-06-12T12:53:34Z")

</div>

Closed on June 12, 2019, 12:53pm UTC

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