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
preguntada hace 5 años292 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
EXPERTO
respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas