Referencing type fields in query_string ES 5.5 doesn't work as expected

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"]
}
}
}

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

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