I have a log entry
"http_url": "https://login.live.com/GetCredentialType.srf?wa=wsignin1.0....."
Why does this query find the entry:
GET _search
{
"query": {
"bool": {
"must": [
{ "wildcard": { "http_url": "*getcredentialtype*"} },
{ "exists" : { "field" : "http_url" } }
]
}
},
"sort": ["_doc"],
"size": 1000
}
but this doesnt:
GET _search
{
"query": {
"bool": {
"must": [
{ "wildcard": { "http_url.keyword": "*GetCredentialType*"} },
{ "exists" : { "field" : "http_url" } }
]
}
},
"sort": ["_doc"],
"size": 1000
}
I thought ".keyword" gives me the unanalyzed field and then I can search in this field. I have not found one way to add the .keyword such that this log will ever appear.