Hi ,
A wild card query to return the records matching country is as below :
{
"query":{
"filtered":{
"filter":{
"bool":{
"must":[ {"wildcard":{"Party.country" : "j*"}} ]
} } } }}
This returns Australia and also "United Arab Emirates".
This should only return Australia. Why is it considering Arab has a separate token even though the country field is not_analyzed. Am i doing something wrong?