How to save exact(without analyzed) value in elasticsearch 5 and also make that value queryable.
In elasticsearch 2 there is option not_analyzed, but what about in 5?
How to save exact(without analyzed) value in elasticsearch 5 and also make that value queryable.
In elasticsearch 2 there is option not_analyzed, but what about in 5?
IF you are talking about string
fields, these have been replaced in 5.0 by keyword
and text
fields. keyword fields index the exact value of the field as a single token similar to how string
fields used to work with index: not_analyzed
, text fields tokenize the field and index the tokens similar to how string
fields used to work with index: analyzed
. More information can be found here: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_mapping_changes.html#_literal_string_literal_fields_replaced_by_literal_text_literal_literal_keyword_literal_fields
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.