# Elasticsearch 5.3.3: filter docs with same value

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-3-3-filter-docs-with-same-value/224868>\
**Category:** Elasticsearch\
**Created:** [March 24, 2020, 3:06pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-3-filter-docs-with-same-value/224868 "2020-03-24T15:06:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![domanskyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/domanskyi/32/64986_2.png) [@domanskyi](https://discuss.elastic.co/u/domanskyi)\
**Post date:** [March 24, 2020, 3:06pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-3-filter-docs-with-same-value/224868/1 "2020-03-24T15:06:56Z")

</div>

I have next mapping:

```json
{
  "mappings": {
    "jobs": {
      "properties": {
        "bullets": {
          "type": "text"
        },
        "description": {
          "type": "text"
        },
        "title": {
          "type": "text"
        }
      }
    }
  }
}

```

Bullets is array of 4 strings, description generates from bullets.

To get documents i use MTL query with document id:

```json
{
  "query": {
    "bool": {
      "must": [
        {
          "more_like_this": {
            "fields": [
              "title",
              "description"
            ],
            "like": [
              {
                "_index": "index_name",
                "_type": "jobs",
                "_id": "doc_id"
              }
            ],
            "minimum_should_match": "30%"
          }
        }
      ]
    }
  }
}

```

But some documents have description, similar to document with id `doc_id` or similar description between themselves.

Is there any way to filter docs with similar description (make this field unique for every doc in result)?

---

<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:** [April 21, 2020, 3:06pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-3-filter-docs-with-same-value/224868/2 "2020-04-21T15:06:58Z")

</div>

Closed on April 21, 2020, 3:06pm UTC

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