The Star Query Search is failing on E/S when using Chinese characters. But the same is working for non-chinese characters.
Not working
http://localhost:9200/macroni_index/_search?q=平台*&size=1
Working
http://localhost:9200/macroni_index/_search?q=平台&size=1
http://localhost:9200/macroni_index/_search?q=583192*&size=1
http://localhost:9200/macroni_index/_search?q=macroni*&size=1
Using Java E/S API at the client. Here is the query that is generated.
curl -XGET 'http://localhost:9200/macroni_index/_search?pretty' -H 'Content-Type: application/json' -d'
{
"size" : 1,
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "平台*",
"fields" : [ "NAME","USER","CUSTOMER","TRACK","MANUFACTURING","INVENTORY" ],
"default_operator" : "and"
}
},
"filter" : {
"bool" : {
"must" : [ {
"term" : {
"TRACKSTAT" : "y"
}
}]
}
}
}
},
"fields" : "MACRONI_ID"
}'