I want to exactly match the string ":Feed:"
in a message
field and go back a day pull all such records. The json I have seems to also match the plain word " feed "
. I am not sure where I am going wrong. Do I need to add "constant_score"
to this query JSON? The JSON I have currently is as shown below:
{
"query": {
"bool": {
"must": {
"query_string": {
"fields": ["message"],
"query": "\\:Feed\\:"
}
},
"must": {
"range": {
"timestamp": {
"gte": "now-1d",
"lte": "now"
}
}
}
}
}
}