# Multi\_match and query tokenization

**URL:** <https://discuss.elastic.co/t/multi-match-and-query-tokenization/10725>\
**Category:** Elasticsearch\
**Created:** [February 13, 2013, 7:45am UTC](https://discuss.elastic.co/t/multi-match-and-query-tokenization/10725 "2013-02-13T07:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_De\_Soyres](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Pierre\_De\_Soyres](https://discuss.elastic.co/u/Pierre_De_Soyres)\
**Post date:** [February 13, 2013, 7:45am UTC](https://discuss.elastic.co/t/multi-match-and-query-tokenization/10725/1 "2013-02-13T07:45:43Z")

</div>

Hi,

assuming I have this mapping :  
{  
"mail" : {  
"properties" : {  
"subject" : {"type" : "string", "analyzer" : "standard"},  
"message" : {"type" : "string", "analyzer" : "whitespace"},  
}  
}  
}  
where subject and message fields haven't got the same analyzer.

If I do a multi\_like query like :  
{  
"multi\_match" : {  
"query" : "this is a test",  
"fields" : ["subject", "message"]  
}  
}

does the query will be tokenized using standard analyzer when querying  
subject field and whitespace analyzer when querying on message field ?

Thanks in advance.

Pierre

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [February 13, 2013, 10:58am UTC](https://discuss.elastic.co/t/multi-match-and-query-tokenization/10725/2 "2013-02-13T10:58:17Z")

</div>

> does the query will be tokenized using standard analyzer when querying  
> subject field and whitespace analyzer when querying on message field ?

Yes.

But note that the same does not apply to the query\_string query

clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:51am UTC](https://discuss.elastic.co/t/multi-match-and-query-tokenization/10725/3 "2017-07-06T02:51:41Z")

</div>


