# Term query support two separate letters?

**URL:** <https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064>\
**Category:** Elasticsearch\
**Created:** [August 5, 2013, 4:16am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064 "2013-08-05T04:16:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrilforce](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cyrilforce](https://discuss.elastic.co/u/cyrilforce)\
**Post date:** [August 5, 2013, 4:16am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/1 "2013-08-05T04:16:24Z")

</div>

Hi,

Would like to know whether term query support two separate letters as i  
can't find it in the document of any indication (if not any alternative as  
i need exact word matching). I have the following query :

_{_  
_"query": {_

- 

```
   "filtered" : {*

```

- 

```
    "query" : {*

```

- 

```
          "term" : {*

```

- 

```
              "USER_ID" : "2"*

```

- 

```
           }*

```

- 

```
       },*

```

- 

```
       "filter" : { *

```

- 

```
         "bool" : {*

```

- 

```
                   "must" : [*

```

- 

```
                        { "term" : { "CAT_ID" : "131"}}, 

```

//ContentType \*

- 

```
                        { "term" : { "CAT_NAME" : "latest games"}} 

```

//Genre \*

- 

```
                       ]*

```

- 

```
                  } *

```

- 

```
       }*

```

- 

```
   }*

```

- }\*  
_}_

and it doesn't return result however if the cat\_name was latest then it  
return.

The document have the following :

"CAT\_NAME": [  
"Ala Carte",  
"OffSeason",  
"Latest Games",  
"Adventure"  
],

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [August 5, 2013, 5:26am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/2 "2013-08-05T05:26:14Z")

</div>

Term queries terms are not analyzed, so they work best against fields that  
are not analyzed. If you did not specify the CAT\_NAME field as not\_analyzed  
(or used a keyword analyzer), then the standard analyzer will be used and  
the value will be split in multiple tokens. Change the mapping for that  
field to be not\_analyzed and re-index your content.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Sun, Aug 4, 2013 at 9:16 PM, cyrilforce [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) wrote:

> Hi,
> 
> Would like to know whether term query support two separate letters as i  
> can't find it in the document of any indication (if not any alternative as  
> i need exact word matching). I have the following query :
> 
> _{_  
> _"query": {_
> 
> - 
> 
> ```
> "filtered" : {*
> 
> ```
> 
> - 
> 
> ```
> "query" : {*
> 
> ```
> 
> - 
> 
> ```
> "term" : {*
> 
> ```
> 
> - 
> 
> ```
> "USER_ID" : "2"*
> 
> ```
> 
> - 
> 
> ```
> }*
> 
> ```
> 
> - 
> 
> ```
> },*
> 
> ```
> 
> - 
> 
> ```
> "filter" : { *
> 
> ```
> 
> - 
> 
> ```
> "bool" : {*
> 
> ```
> 
> - 
> 
> ```
> "must" : [*
> 
> ```
> 
> - 
> 
> ```
> { "term" : { "CAT_ID" : "131"}},
> 
> ```
> 
> //ContentType \*
> 
> - 
> 
> ```
> { "term" : { "CAT_NAME" : "latest games"}}
> 
> ```
> 
> //Genre \*
> 
> - 
> 
> ```
> ]*
> 
> ```
> 
> - 
> 
> ```
> } *
> 
> ```
> 
> - 
> 
> ```
> }*
> 
> ```
> 
> - 
> 
> ```
> }*
> 
> ```
> 
> - }\*  
> _}_
> 
> and it doesn't return result however if the cat\_name was latest then it  
> return.
> 
> The document have the following :
> 
> "CAT\_NAME": [  
> "Ala Carte",  
> "OffSeason",  
> "Latest Games",  
> "Adventure"  
> ],
> 
> --  
> 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:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2013, 6:38am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/3 "2013-08-05T06:38:44Z")

</div>

I add to Ivan's answer that for you use case as you query your term with lower case, you should use a keyword tokenizer + a lowercase filter in a custom analyzer and apply it to your field as described by Ivan.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 5 août 2013 à 07:26, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) a écrit :

Term queries terms are not analyzed, so they work best against fields that are not analyzed. If you did not specify the CAT\_NAME field as not\_analyzed (or used a keyword analyzer), then the standard analyzer will be used and the value will be split in multiple tokens. Change the mapping for that field to be not\_analyzed and re-index your content.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Sun, Aug 4, 2013 at 9:16 PM, cyrilforce [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) wrote:

> Hi,
> 
> Would like to know whether term query support two separate letters as i can't find it in the document of any indication (if not any alternative as i need exact word matching). I have the following query :
> 
> {  
> "query": {  
> "filtered" : {  
> "query" : {  
> "term" : {  
> "USER\_ID" : "2"  
> }  
> },  
> "filter" : {  
> "bool" : {  
> "must" : [  
> { "term" : { "CAT\_ID" : "131"}}, //ContentType  
> { "term" : { "CAT\_NAME" : "latest games"}} //Genre  
> ]  
> }  
> }  
> }  
> }  
> }
> 
> and it doesn't return result however if the cat\_name was latest then it return.
> 
> The document have the following :
> 
> "CAT\_NAME": [  
> "Ala Carte",  
> "OffSeason",  
> "Latest Games",  
> "Adventure"  
> ],
> 
> --  
> 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).

--  
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:** ![cyrilforce](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cyrilforce](https://discuss.elastic.co/u/cyrilforce)\
**Post date:** [August 5, 2013, 8:19am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/4 "2013-08-05T08:19:08Z")

</div>

Hi Ivan,

I tried with some sample as following :

{  
"tweet" : {  
"properties" : {  
"message" : {"type" : "string", "index" : "not\_analyzed"}

```
    },
    "ignore_conflicts" : "true"
}

```

}

I not sure whether the ignore\_conflicts parameter is in the right place or  
not. But anyway with or without it still it will produce errors : {  
"error": "MergeMappingException[Merge failed with failures {[mapper  
[message] has different index values, mapper [message] has different  
tokenize values, mapper [message] has different index\_analyzer]}]",  
"status": 400  
}

Thanks.

Cyril

On Mon, Aug 5, 2013 at 1:26 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> Term queries terms are not analyzed, so they work best against fields that  
> are not analyzed. If you did not specify the CAT\_NAME field as not\_analyzed  
> (or used a keyword analyzer), then the standard analyzer will be used and  
> the value will be split in multiple tokens. Change the mapping for that  
> field to be not\_analyzed and re-index your content.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/core-types/)
> 
> --  
> Ivan
> 
> On Sun, Aug 4, 2013 at 9:16 PM, cyrilforce [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) wrote:
> 
> > Hi,
> > 
> > Would like to know whether term query support two separate letters as i  
> > can't find it in the document of any indication (if not any alternative as  
> > i need exact word matching). I have the following query :
> > 
> > _{_  
> > _"query": {_
> > 
> > - 
> > 
> > ```
> > "filtered" : {*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "query" : {*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "term" : {*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "USER_ID" : "2"*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > }*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > },*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "filter" : { *
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "bool" : {*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "must" : [*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > { "term" : { "CAT_ID" : "131"}},
> > 
> > ```
> > 
> > //ContentType \*
> > 
> > - 
> > 
> > ```
> > { "term" : { "CAT_NAME" : "latest games"}}
> > 
> > ```
> > 
> > //Genre \*
> > 
> > - 
> > 
> > ```
> > ]*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > } *
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > }*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > }*
> > 
> > ```
> > 
> > - }\*  
> > _}_
> > 
> > and it doesn't return result however if the cat\_name was latest then it  
> > return.
> > 
> > The document have the following :
> > 
> > "CAT\_NAME": [  
> > "Ala Carte",  
> > "OffSeason",  
> > "Latest Games",  
> > "Adventure"  
> > ],
> > 
> > --  
> > 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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe](https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe).  
> To unsubscribe from this group and all its topics, 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).

--  
Regards,

Chee Hoo

--  
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:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2013, 8:31am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/5 "2013-08-05T08:31:10Z")

</div>

You can not update your mapping.  
Remove the old one. It will remove your docs BTW.

And create a new one.

HTH

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 5 août 2013 à 10:19, chee hoo lum [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) a écrit :

> Hi Ivan,
> 
> I tried with some sample as following :
> 
> {  
> "tweet" : {  
> "properties" : {  
> "message" : {"type" : "string", "index" : "not\_analyzed"}
> 
> ```
> },
> "ignore_conflicts" : "true"
> }
> 
> ```
> 
> }
> 
> I not sure whether the ignore\_conflicts parameter is in the right place or not. But anyway with or without it still it will produce errors : {  
> "error": "MergeMappingException[Merge failed with failures {[mapper [message] has different index values, mapper [message] has different tokenize values, mapper [message] has different index\_analyzer]}]",  
> "status": 400  
> }
> 
> Thanks.
> 
> Cyril
> 
> On Mon, Aug 5, 2013 at 1:26 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > Term queries terms are not analyzed, so they work best against fields that are not analyzed. If you did not specify the CAT\_NAME field as not\_analyzed (or used a keyword analyzer), then the standard analyzer will be used and the value will be split in multiple tokens. Change the mapping for that field to be not\_analyzed and re-index your content.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/core-types/)
> > 
> > --  
> > Ivan
> > 
> > On Sun, Aug 4, 2013 at 9:16 PM, cyrilforce [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) wrote:
> > 
> > > Hi,
> > > 
> > > Would like to know whether term query support two separate letters as i can't find it in the document of any indication (if not any alternative as i need exact word matching). I have the following query :
> > > 
> > > {  
> > > "query": {  
> > > "filtered" : {  
> > > "query" : {  
> > > "term" : {  
> > > "USER\_ID" : "2"  
> > > }  
> > > },  
> > > "filter" : {  
> > > "bool" : {  
> > > "must" : [  
> > > { "term" : { "CAT\_ID" : "131"}}, //ContentType  
> > > { "term" : { "CAT\_NAME" : "latest games"}} //Genre  
> > > ]  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > and it doesn't return result however if the cat\_name was latest then it return.
> > > 
> > > The document have the following :
> > > 
> > > "CAT\_NAME": [  
> > > "Ala Carte",  
> > > "OffSeason",  
> > > "Latest Games",  
> > > "Adventure"  
> > > ],
> > > 
> > > --  
> > > 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 a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe](https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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).
> 
> --  
> Regards,
> 
> ## Chee Hoo
> 
> 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:** ![cyrilforce](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cyrilforce](https://discuss.elastic.co/u/cyrilforce)\
**Post date:** [August 5, 2013, 9:37am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/6 "2013-08-05T09:37:49Z")

</div>

Hi David,

Thanks. But i m not gonna remove it cause that been administrate by the  
another guy. In spite of that i could achieve what i wanted with the  
following query :

_{_  
_"query": {_

- 

```
   "filtered" : {*

```

- 

```
    "query" : {*

```

- 

```
          "term" : {*

```

- 

```
              "USER_ID" : "2"*

```

- 

```
           }*

```

- 

```
       },*

```

- 

```
        "filter" : { *

```

- 

```
            "query" : { *

```

- 

```
                  "bool" : {*

```

- 

```
                       "must" : [*

```

- 

```
                             { "term" : { "CAT_ID" : "131"}}, *

```

- 

```
                             { "match" : { "CAT_NAME" : { "query" :

```

"Top 10", "operator" : "and" }}} \*

- 

```
                         ]*

```

- 

```
                  } *

```

- 

```
          }*

```

- 

```
       }*

```

- 

```
   }*

```

- }\*  
_}_
- 
- 
- 
- 

Any shortcoming you could foresee ? Thanks anyway enlightenment on the  
mapping.

Cyril

On Mon, Aug 5, 2013 at 4:31 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> You can not update your mapping.  
> Remove the old one. It will remove your docs BTW.
> 
> And create a new one.
> 
> HTH
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 août 2013 à 10:19, chee hoo lum [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) a écrit :
> 
> Hi Ivan,
> 
> I tried with some sample as following :
> 
> {  
> "tweet" : {  
> "properties" : {  
> "message" : {"type" : "string", "index" : "not\_analyzed"}
> 
> ```
> },
> "ignore_conflicts" : "true"
> }
> 
> ```
> 
> }
> 
> I not sure whether the ignore\_conflicts parameter is in the right place or  
> not. But anyway with or without it still it will produce errors : {  
> "error": "MergeMappingException[Merge failed with failures {[mapper  
> [message] has different index values, mapper [message] has different  
> tokenize values, mapper [message] has different index\_analyzer]}]",  
> "status": 400  
> }
> 
> Thanks.
> 
> Cyril
> 
> On Mon, Aug 5, 2013 at 1:26 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > Term queries terms are not analyzed, so they work best against fields  
> > that are not analyzed. If you did not specify the CAT\_NAME field as  
> > not\_analyzed (or used a keyword analyzer), then the standard analyzer will  
> > be used and the value will be split in multiple tokens. Change the mapping  
> > for that field to be not\_analyzed and re-index your content.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/core-types/)
> > 
> > --  
> > Ivan
> > 
> > On Sun, Aug 4, 2013 at 9:16 PM, cyrilforce [cheehoo84@gmail.com](mailto:cheehoo84@gmail.com) wrote:
> > 
> > > Hi,
> > > 
> > > Would like to know whether term query support two separate letters as i  
> > > can't find it in the document of any indication (if not any alternative as  
> > > i need exact word matching). I have the following query :
> > > 
> > > _{_  
> > > _"query": {_
> > > 
> > > - 
> > > 
> > > ```
> > > "filtered" : {*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > "query" : {*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > "term" : {*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > "USER_ID" : "2"*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > }*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > },*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > "filter" : { *
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > "bool" : {*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > "must" : [*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > { "term" : { "CAT_ID" : "131"}},
> > > 
> > > ```
> > > 
> > > //ContentType \*
> > > 
> > > - 
> > > 
> > > ```
> > > { "term" : { "CAT_NAME" : "latest games"}}
> > > 
> > > ```
> > > 
> > > //Genre \*
> > > 
> > > - 
> > > 
> > > ```
> > > ]*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > } *
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > }*
> > > 
> > > ```
> > > 
> > > - 
> > > 
> > > ```
> > > }*
> > > 
> > > ```
> > > 
> > > - }\*  
> > > _}_
> > > 
> > > and it doesn't return result however if the cat\_name was latest then it  
> > > return.
> > > 
> > > The document have the following :
> > > 
> > > "CAT\_NAME": [  
> > > "Ala Carte",  
> > > "OffSeason",  
> > > "Latest Games",  
> > > "Adventure"  
> > > ],
> > > 
> > > --  
> > > 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 a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe](https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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).
> 
> --  
> Regards,
> 
> Chee Hoo
> 
> --  
> 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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe](https://groups.google.com/d/topic/elasticsearch/RTS09HzWG-M/unsubscribe).  
> To unsubscribe from this group and all its topics, 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).

--  
Regards,

Chee Hoo

--  
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:22am UTC](https://discuss.elastic.co/t/term-query-support-two-separate-letters/13064/7 "2017-07-06T02:22:58Z")

</div>


