This is my first post here, if I post at the wrong place, please let me know. Thank you.
I have an index and one of its field is a string type. The field setting looks like below.
"analyzer": "lowercase_keyword" (my analyzer that combines keyword tokenizer and lowercase tokenizer)
Then my application indexed a document that contains myfield:1
After the document is indexed, if I ran "GET /myindex/_search?q=(myfield:1)" it says there is no match. But when I ran "GET /myindex/_search?q=(myfield:1.0)" it can find the document that is just indexed and return the doc to me. When looking at the _source. _source does say myfield is 1, not 1.0.
Does anyone know why this happened and how can I fix this to search 1 instead of 1.0?