# Referencing type fields in query\_string ES 5.5 doesn't work as expected

**URL:** <https://discuss.elastic.co/t/referencing-type-fields-in-query-string-es-5-5-doesnt-work-as-expected/94026>\
**Category:** Elasticsearch\
**Created:** [July 20, 2017, 10:24pm UTC](https://discuss.elastic.co/t/referencing-type-fields-in-query-string-es-5-5-doesnt-work-as-expected/94026 "2017-07-20T22:24:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_D](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Pavel\_D](https://discuss.elastic.co/u/Pavel_D)\
**Post date:** [July 20, 2017, 10:24pm UTC](https://discuss.elastic.co/t/referencing-type-fields-in-query-string-es-5-5-doesnt-work-as-expected/94026/1 "2017-07-20T22:24:54Z")

</div>

Hi there,

I'm in the process of migration from 1.7 to 5.5 and I faced an issue while running a query\_string query.

On 1.7.3 I was able to reference fields of each individual type using dot notation, but in ES 5.5 it just returns no results.

Was there a breaking change? I would appreciate if someone could point me to the documentation cause I could not find it.

I have a type called "event", which has a field "title"  
Does not work:  
{  
"query": {  
"query\_string": {  
"query": "publishes",  
"fields": ["event.title"]  
}  
}  
}

Works  
{  
"query": {  
"query\_string": {  
"query": "publishes",  
"fields": ["title"]  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Pavel\_D](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Pavel\_D](https://discuss.elastic.co/u/Pavel_D)\
**Post date:** [July 21, 2017, 9:55am UTC](https://discuss.elastic.co/t/referencing-type-fields-in-query-string-es-5-5-doesnt-work-as-expected/94026/2 "2017-07-21T09:55:45Z")

</div>

Ok, I finally found it in the doc. Type name prefix removed.

[https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking\_20\_mapping\_changes.html#\_type\_name\_prefix\_removed](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking_20_mapping_changes.html#_type_name_prefix_removed)

---

<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:** [August 18, 2017, 9:56am UTC](https://discuss.elastic.co/t/referencing-type-fields-in-query-string-es-5-5-doesnt-work-as-expected/94026/3 "2017-08-18T09:56:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
