# Why is this query not working?

**URL:** <https://discuss.elastic.co/t/why-is-this-query-not-working/13872>\
**Category:** Elasticsearch\
**Created:** [October 7, 2013, 9:06pm UTC](https://discuss.elastic.co/t/why-is-this-query-not-working/13872 "2013-10-07T21:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [October 7, 2013, 9:06pm UTC](https://discuss.elastic.co/t/why-is-this-query-not-working/13872/1 "2013-10-07T21:06:00Z")

</div>

I have both 'title' and 'name' fields that are objects and can contain  
multiple locales, i.e.

"title": {  
"properties": {  
"en": {  
...  
},  
"es" :{  
...  
}  
}  
}

"name": {  
"properties": {  
"en": {  
...  
},  
"es" :{  
...  
}  
}  
}

If I do a search on the English title field:

{  
"from" : 0,  
"size" : 20,  
"query" : {  
"query\_string" : {  
"query" : "title.en:elastic"  
}  
}  
}

I am getting a match on the 'name' field. When I look at the translated  
Lucene query in Inquistor it translates to:

en:demo

Why is it removing the 'title' field from the query?

--  
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:13am UTC](https://discuss.elastic.co/t/why-is-this-query-not-working/13872/2 "2017-07-06T02:13:24Z")

</div>


