I am trying to create a DSL query to search for a text with wild cards. I have the following working API call.
http://localhost:9200/_search?q="Error creating" AND @timestamp:["2019-03-18T17:01:49Z" TO "2019-03-18T18:00:48Z"]
I have verified that this query returns expected results.
I am trying to extend the call to search for multiple wild card texts within a range as a request body search.
Can anyone please check the syntax and why it doesnt work as expected?
{
"query": {
"bool": {
"must": [
{
"wildcard" : { "detailmsg" : { "value" : "*Error creating used syndication lead*" } }
},
{
"range": {
"@timestamp": {
"gte": 1552867260000,
"lte": 1552863660000,
"format": "epoch_millis"
}
}
}
]
}
}
}