# How to pass in an artificial document to a MLT Query when searching for similar phrases?

**URL:** <https://discuss.elastic.co/t/how-to-pass-in-an-artificial-document-to-a-mlt-query-when-searching-for-similar-phrases/231473>\
**Category:** Elasticsearch\
**Created:** [May 7, 2020, 7:25am UTC](https://discuss.elastic.co/t/how-to-pass-in-an-artificial-document-to-a-mlt-query-when-searching-for-similar-phrases/231473 "2020-05-07T07:25:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijith\_chandran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhijith_chandran/32/60470_2.png) [@abhijith\_chandran](https://discuss.elastic.co/u/abhijith_chandran)\
**Post date:** [May 7, 2020, 7:25am UTC](https://discuss.elastic.co/t/how-to-pass-in-an-artificial-document-to-a-mlt-query-when-searching-for-similar-phrases/231473/1 "2020-05-07T07:25:35Z")

</div>

Hi,  
I am using the following MLT query

```auto
GET /_search
{
    "query": {
        "more_like_this" : {
            "fields" : ["title", "content.standard"],
            "like" : "Housing rents",
            "min_term_freq" : 1,
            "max_query_terms" : 12
        }
    }
}

```

How do I feed a artificially document to it (A doc not present in my index) to give the query more 'context' ? I read the docs and there is an example as to how to feed in a doc if you want to find other similar docs but none for phrases.

---

<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 4, 2020, 7:25am UTC](https://discuss.elastic.co/t/how-to-pass-in-an-artificial-document-to-a-mlt-query-when-searching-for-similar-phrases/231473/2 "2020-06-04T07:25:45Z")

</div>

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