# Term Query is not working

**URL:** <https://discuss.elastic.co/t/term-query-is-not-working/158470>\
**Category:** Elasticsearch\
**Created:** [November 28, 2018, 6:12am UTC](https://discuss.elastic.co/t/term-query-is-not-working/158470 "2018-11-28T06:12:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 28, 2018, 7:07am UTC](https://discuss.elastic.co/t/term-query-is-not-working/158470/5 "2018-11-28T07:07:12Z")

</div>

Please provide all the relevant information in a recreation script and describe exactly what is not working. Having access to sample data and mappings together with the query makes it a lot easier to help.

Also please do not open multiple threads for the same issue. It is a lot easier if all the information can be found in the same place. It looks to me like the following threads refer to the same issue, is that correct?

> [@Term Query issue](https://discuss.elastic.co/t/term-query-issue/158464):
>
> Hi, all { "query": { "bool": { "must": [{ "nested": { "path": "identifiers", "query": { "bool": { "must": [{ "term": { "identifiers.value": "PERSONAS" } }] } } } } ] } } } I am not sure why this query is not working

> [@Match Query - Can you help me?](https://discuss.elastic.co/t/match-query-can-you-help-me/158457):
>
> Hi, I want to search this kind of thing. I have fields like this. identifiers:[{key: "list1", value:"My name is Giorgi"}, {key:"list2", value:"Giorgi"}, {key:"list3", value:"Giorgi Kharchenko"}] { "query" :{ "bool" :{ "must" : { "match\_phrase" :{ "identifiers.value" : "Giorgi" } } } } } } So I want to get records which contains identifiers that includes search value for value property. {key:"list2", value:"Giorgi"} I am not sure how I can build th…

Also note that this forum is manned by volunteers, so please be patient. It may take some time for someone to respond, and if you have not received any response in a couple work business days it is generally OK to bump the thread.

---

_[View the full topic](https://discuss.elastic.co/t/term-query-is-not-working/158470)._
