# More\_Like\_This per\_field\_analyzer

**URL:** <https://discuss.elastic.co/t/more-like-this-per-field-analyzer/32675>\
**Category:** Elasticsearch\
**Created:** [October 21, 2015, 1:14pm UTC](https://discuss.elastic.co/t/more-like-this-per-field-analyzer/32675 "2015-10-21T13:14:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [October 21, 2015, 1:14pm UTC](https://discuss.elastic.co/t/more-like-this-per-field-analyzer/32675/1 "2015-10-21T13:14:00Z")

</div>

Documentation says that you can use per\_field\_analyzer's in an MLT query. Using 1.7.1

docs

The list of documents to find documents like it. The syntax to specify documents is similar to the one used by the Multi GET API. The text is fetched from fields unless overridden in each document request. The text is analyzed by the analyzer at the field, but could also be overridden. **The syntax to override the analyzer at the field follows a similar syntax to the per\_field\_analyzer parameter of the Term Vectors API.**

I can't figure out how, "similar" isn't working. I tried like below but it returns ...QueryParsingException[[.indexname] [mlt] query does not support [Email]]; },

{  
"query": {  
"more\_like\_this": {  
"fields": [  
"Email^5",  
"Name",  
],  
"per\_field\_analyzer": {  
"Email": "not\_analyzed"  
},  
"docs": [  
{  
"\_index": "jdbc",  
"\_type": "MyType",  
"\_id": "LONGIDSTRINGHERE123"  
}  
],  
"min\_term\_freq": 1,  
"max\_query\_terms": 5,  
"stop\_words": [  
"Install"  
]  
}  
},  
"from": 0,  
"size": 250,  
"aggs": {  
"top\_types": {  
"terms": {  
"field": "\_type"  
},  
"aggs": {  
"top\_type\_hits": {  
"top\_hits": {  
"size": 25  
}  
}  
}  
}  
}  
}

i also tried "per\_field\_analyzer": [{  
"Email": "not\_analyzed"  
}],

but it says same error with per\_field\_analyzer in there.

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 21, 2015, 2:42pm UTC](https://discuss.elastic.co/t/more-like-this-per-field-analyzer/32675/2 "2015-10-21T14:42:51Z")

</div>

I think the `per_field_analyzer` setting belongs into the entries in the `docs` array. Have you tried that?

---

<div class="post-metadata">

**Author:** ![Garrett\_Johnson](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Garrett\_Johnson](https://discuss.elastic.co/u/Garrett_Johnson)\
**Post date:** [October 21, 2015, 5:02pm UTC](https://discuss.elastic.co/t/more-like-this-per-field-analyzer/32675/3 "2015-10-21T17:02:04Z")

</div>

That was it!

TYVM

---

<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 5, 2017, 11:43pm UTC](https://discuss.elastic.co/t/more-like-this-per-field-analyzer/32675/4 "2017-07-05T23:43:28Z")

</div>


