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
已提問 5 年前檢視次數 292 次
1 個回答
0
已接受的答案

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
專家
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南