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
posta 5 anni fa292 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande