# Query\_string, mutli field and the "analyzer" parameter

**URL:** <https://discuss.elastic.co/t/query-string-mutli-field-and-the-analyzer-parameter/10948>\
**Category:** Elasticsearch\
**Created:** [February 28, 2013, 9:53am UTC](https://discuss.elastic.co/t/query-string-mutli-field-and-the-analyzer-parameter/10948 "2013-02-28T09:53:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_King](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/william_king/32/2631_2.png) [@William\_King](https://discuss.elastic.co/u/William_King)\
**Post date:** [February 28, 2013, 9:53am UTC](https://discuss.elastic.co/t/query-string-mutli-field-and-the-analyzer-parameter/10948/1 "2013-02-28T09:53:56Z")

</div>

Hi all,

I'm just making sure my thinking around this is correct. When you use the  
"query\_string" query WITHOUT the "analyzer" parameter set while running it  
against multiple fields does each query against each of the fields use that  
fields default search analyzer? Or do they all use one search analyzer set  
somehow? Does this change when using dis\_max vs bool?

Thanks in advance

--  
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:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 28, 2013, 4:16pm UTC](https://discuss.elastic.co/t/query-string-mutli-field-and-the-analyzer-parameter/10948/2 "2013-02-28T16:16:58Z")

</div>

It will use each field default search analyzer. It applies to both dis\_max and bool.

On Feb 28, 2013, at 10:53 AM, William King [willtrking@gmail.com](mailto:willtrking@gmail.com) wrote:

> Hi all,
> 
> I'm just making sure my thinking around this is correct. When you use the "query\_string" query WITHOUT the "analyzer" parameter set while running it against multiple fields does each query against each of the fields use that fields default search analyzer? Or do they all use one search analyzer set somehow? Does this change when using dis\_max vs bool?
> 
> Thanks in advance
> 
> --  
> 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).

--  
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:** ![Johnny\_Mariethoz](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@Johnny\_Mariethoz](https://discuss.elastic.co/u/Johnny_Mariethoz)\
**Post date:** [April 24, 2013, 9:16am UTC](https://discuss.elastic.co/t/query-string-mutli-field-and-the-analyzer-parameter/10948/3 "2013-04-24T09:16:20Z")

</div>

Hello,

if it is the case why I got differents results by querying:

- toto
- myterm:toto

See my example here:  
[https://groups.google.com/d/msg/elasticsearch/wahlrLlxVwQ/ulir17TfmAYJ](https://groups.google.com/d/msg/elasticsearch/wahlrLlxVwQ/ulir17TfmAYJ)

Many thanks,

-- Johnny

On Thursday, February 28, 2013 5:16:58 PM UTC+1, kimchy wrote:

> It will use each field default search analyzer. It applies to both dis\_max  
> and bool.
> 
> On Feb 28, 2013, at 10:53 AM, William King \<[willt...@gmail.com](mailto:willt...@gmail.com)\<javascript:\>\>  
> wrote:
> 
> Hi all,
> 
> I'm just making sure my thinking around this is correct. When you use the  
> "query\_string" query WITHOUT the "analyzer" parameter set while running it  
> against multiple fields does each query against each of the fields use that  
> fields default search analyzer? Or do they all use one search analyzer set  
> somehow? Does this change when using dis\_max vs bool?
> 
> Thanks in advance
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:39am UTC](https://discuss.elastic.co/t/query-string-mutli-field-and-the-analyzer-parameter/10948/4 "2017-07-06T02:39:49Z")

</div>


