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
gefragt vor 5 Jahren292 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen