AWS Elasticsearch Option to store fields without indexing it.

0

A customer would like to specify which document fields should be indexed or searchable and which ones should be ignored. This appears to be available via the mappings functionality on Amazon Elasticsearch, via the "enabled" attribute as described here: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/enabled.html. Is there an option in Amazon Elasticsearch Service to perform similar functionality.

FYI: Did try using the _mappings option but when using "enabled" I received an error message that the property is not supported.

AWS
asked 5 years ago285 views
1 Answer
0
Accepted Answer

The mapping to not "index" the filed is here: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/text.html

PUT my_index
{
  "mappings": {
    "my_type": {
      "properties": {
        "full_name": {
          "type":  "text",
          "index": false
        }
      }
    }
  }
}

Or you can use the field type "keyword" that is normally used for e-mail, zip code or single word fields. https://www.elastic.co/guide/en/elasticsearch/reference/6.0/keyword.html

AWS
EXPERT
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions