Elasticsearch 5 not_analyzed

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?

2 Likes

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

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.