Hello,
I am looking for wildcard matching of events on log data in elasticsearch. For example i want to match IP addresses in my data but I only know the ending address (i want to match to 192.100.1.1 but i search for *.1.1).
I wanted to know if there is any difference (logically or implementation wise) if I am using query string query
{"bool": {"must" : [{"query_string": {"query": "*something"}},{"match": {"message.type": "RECORD_EVENT"}}]}})
Or if I am using wildcard query
{"bool": {"must" : [{"wildcard": {"_all": "*something"}},{"match": {"message.type":
"RECORD_EVENT"}}]}})
Also, is there any way to speed up such queries? (I am using the default analyzer and tokenizer)