I know that in elasticsearch 5, the string field is no more. From this blog post: https://www.elastic.co/blog/strings-are-dead-long-live-strings I understand when to use text and when to use keyword when "index": "analyzed" or "index": "not_analyzed".
But what should we use when "type": "string", "index": "no"? Does it matter?
If you want to aggregate or sort by the field, I think the "keyword" datatype is better because of "doc_values": true by default.
If not, maybe either is fine.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.