{
"from":0,
"query":{
"bool":{
"must":[
{
"query_string":{
"query":"10*",
"lenient":true,
"fields":[
"phoneNumber"
],
"escape":true
}
}
]
}
}
}
Here the phonenumber is of type long and we want to perform wildcard search on it.
I am passing the query as 10* ( "query":"10*",)
Actual hits should have been 15 but I am getting 0 hits.
If I am doing the same for a field with type keyword(string) Address, with the query "query":"newyork*", I am getting the result.
Does anyone have any idea why we didn't get the hits for fields with type long?