# How does ES multi match query with a type cross\_field do analsis of given string?

**URL:** <https://discuss.elastic.co/t/how-does-es-multi-match-query-with-a-type-cross-field-do-analsis-of-given-string/17845>\
**Category:** Elasticsearch\
**Created:** [May 31, 2014, 7:53pm UTC](https://discuss.elastic.co/t/how-does-es-multi-match-query-with-a-type-cross-field-do-analsis-of-given-string/17845 "2014-05-31T19:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dark\_shadow](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dark\_shadow](https://discuss.elastic.co/u/dark_shadow)\
**Post date:** [May 31, 2014, 7:53pm UTC](https://discuss.elastic.co/t/how-does-es-multi-match-query-with-a-type-cross-field-do-analsis-of-given-string/17845/1 "2014-05-31T19:53:24Z")

</div>

Hi,

I was reading ES docs on multi-match query with a type cross\_field but a  
bit confused on how it does analysis of given input string.  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#type-cross-fields](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#type-cross-fields)

The cross\_field type tries to solve these problems at query time by taking  
a _term-centric_approach. It first analyzes the query string into  
individual terms, then looks for each term in any of the fields, as though  
they were one big field.

So when it analyzes the query into individual terms, which analyzer and  
filter dows it use ? Can we configure it with a specific analyzer and  
filter at index time on the fields in mapping ?

I think we can now use multi-match as a replacement for query string ?  
Earlier multi-match will match a document only if the query string after  
analysis is present entirely in one field but now we can search for a  
document where a document consists of all the query terms, no matter if it  
is present in one field or a combination of fields. Am I correct ?

Thanks

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a073024d-0f61-4e1c-a6fb-c1be1435b70b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a073024d-0f61-4e1c-a6fb-c1be1435b70b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:25am UTC](https://discuss.elastic.co/t/how-does-es-multi-match-query-with-a-type-cross-field-do-analsis-of-given-string/17845/2 "2017-07-06T01:25:30Z")

</div>


