Search country using russian query by all fields with prefix "name". Everything's ok.
➜ curl -XGET 'http://localhost:9200/geo/country/_search?pretty' -d '{ query: { multi_match: { fields: ["name*"], query: "Австрия" } } }'
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 8.52575,
"hits" : [ {
"_index" : "geo",
"_type" : "country",
"_id" : "4",
"_score" : 8.52575,
"_source":{"id":4,"world_region_id":1,"slug":"austria","code":"AT","name_en":"Austria","name_de":"Österreich","name_ru":"Австрия","name_it":"Austria","name_es":"Austria","name_fr":"Autriche","name_zh":"奥地利"}
} ]
}
}
But when it comes to multi-type search with there are no results:
➜ curl -XGET 'http://localhost:9200/geo/city,country/_search?pretty' -d '{ query: { multi_match: { fields: ["name*"], query: "Австрия" } } }'
{
"took" : 6,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
However, multi-type search in English goes well:
➜ curl -XGET 'http://localhost:9200/geo/city,country/_search?pretty' -d '{ query: { multi_match: { fields: ["name*"], query: "Austria" } } }'
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 8.52575,
"hits" : [ {
"_index" : "geo",
"_type" : "country",
"_id" : "4",
"_score" : 8.52575,
"_source":{"id":4,"world_region_id":1,"slug":"austria","code":"AT","name_en":"Austria","name_de":"Österreich","name_ru":"Австрия","name_it":"Austria","name_es":"Austria","name_fr":"Autriche","name_zh":"奥地利"}
} ]
}
}