Top "Elasticsearch-mapping" questions

For questions about mapping in Elasticsearch; the process of defining how a document should be mapped to the index.

Store Date Format in elasticsearch

I met a problem when I want to add one datetime string into Elasticsearch. The document is below: {"LastUpdate" : "2013/07/24 00:00:00"} This …

datetime elasticsearch datetime-format elasticsearch-mapping
No handler for type [string] declared on field [name]

When type is declared as string, Elasticsearch 6.0 will show this error. "name" => [ "type" => "string", "analyzer" => "ik_max_…

elasticsearch elasticsearch-mapping elasticsearch-6
Change default mapping of string to "not analyzed" in Elasticsearch

In my system, the insertion of data is always done through csv files via logstash. I never pre-define the mapping. …

elasticsearch logstash logstash-grok elasticsearch-mapping
How to Do a Mapping of Array of Strings in Elasticsearch

I can't find any examples of how to structure an array of strings in elasticsearch when trying to PUT a …

elasticsearch clojure elasticsearch-5 elasticsearch-mapping
Elasticsearch Mapping - Rename existing field

Is there anyway I can rename an element in an existing elasticsearch mapping without having to add a new element ? …

elasticsearch elasticsearch-mapping
elasticsearch mapping issue: failed to parse field

I have this mapping PUT /mytest { "mappings":{ "properties": { "value": { "type": "object" } } } } When I insert this document POST /mytest/_doc/4 { "value": { "…

elasticsearch elasticsearch-mapping
Fields not getting sorted in alphabetical order in elasticsearch

I have a few documents with the a name field in it. I am using analyzed version of the name …

elasticsearch elasticsearch-mapping
Elasticsearch mapping - different data types in same field

I am trying to to create a mapping that will allow me to have a document looking like this: { "created_…

elasticsearch elasticsearch-mapping
Creating an index Nest

How would I recreate the following index using Elasticsearch Nest API? Here is the json for the index including the …

elasticsearch indexing nest elasticsearch-mapping elasticsearch-analyzers
Edge NGram with phrase matching

I need to autocomplete phrases. For example, when I search "dementia in alz", I want to get "dementia in alzheimer's". …

elasticsearch elasticsearch-mapping elasticsearch-query