I have a newly tokenized field of type text for domains. It is a reverse path hierarchy tokenizer on the "."
So a field like "adservice.google.com" becomes the following 3 tokens:
com
google.com
adservice.google.com
I assumed I could then search the field, from say kibana, with the syntax:
+Domain:google.com
But it finds all fields with a "com" token, so I'll get microsoft.com and amazon.com, etc.
I tried encasing in quotes and escaping the ".", but neither helped.
However:
A single wildcard, or regex both work as expected:
+Domain:google?com
+Domain:/google.com/
Can someone point me to an explanation of why the original syntax returns unexpected results?
+Domain:google.com
Edit: elastic stack 6.3.2