# MLT unlike has no effect on query

**URL:** <https://discuss.elastic.co/t/mlt-unlike-has-no-effect-on-query/73065>\
**Category:** Elasticsearch\
**Created:** [January 27, 2017, 9:28pm UTC](https://discuss.elastic.co/t/mlt-unlike-has-no-effect-on-query/73065 "2017-01-27T21:28:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [January 27, 2017, 9:28pm UTC](https://discuss.elastic.co/t/mlt-unlike-has-no-effect-on-query/73065/1 "2017-01-27T21:28:02Z")

</div>

Using ES2.4, doing a MLT with and without the `unlike` gives the same results. The only time i get different results is when I put the same term in both `like` and `unlike`. What am I missing?

```auto
{
 
  "_source": {
    "include": [
      "title"
    ]
  },
  "size": "40",
  "query": {
    "more_like_this": {
      "fields": [
        "title"
        ],
      "like": [
        "dinner",
        "recipe",
        "supper"
      ],
      "unlike": [
          "manager"
      ],
      "max_query_terms": "25",
      "min_term_freq": "1"
    }
  }
}

```

---

<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:** [February 24, 2017, 9:28pm UTC](https://discuss.elastic.co/t/mlt-unlike-has-no-effect-on-query/73065/2 "2017-02-24T21:28:11Z")

</div>

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