Below is a query that should be returning all the information on the entire named user called ‘mike’ for the current date. (As you can see I am using a wildcard to bring make all users called mike and any name after mike which is want I want.)
So data is being returned for the current date which is good however, the wildcard is not working and it’s bringing back data for all users not just mike.
Could someone help me I really need the wildcard to work.
My code:
GET_search
{
"_source": [
"N"
],
"query": {
"bool": {
"should": [
{
"wildcard": {
"N": "mike*"
}
}
],
"must": [
{
"range": {
"VT": {
"gte": "now/d",
"lte": "now+1d/d"
}
}
}
]
}
}
}