Why is this query not working?


(Dan Tuffery) #1

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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2