If, for example, I have a field in which I know that the data ingested to it is only one-word strings. Why would I still use type "text" and not type "keyword" for this field's mapping?
Setting it to be of type "keyword" will both allow me to search it (since it's a one-word, the results will be the same, compared to the "text" type), use it in filters, and use it for aggregations.
I'm trying to understand if there's a catch here.
How does the data ingested if the mapping set to multi-field "text" and "keyword"? does it get ingested twice, even if it's a one-word? Once for the text and once for the keyword?
Thank you in advance.