Skip to content

Instantly share code, notes, and snippets.

@hgfischer
Created September 14, 2016 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgfischer/2fcdc3ed83cfb4b56e3f7afc34337633 to your computer and use it in GitHub Desktop.
Save hgfischer/2fcdc3ed83cfb4b56e3f7afc34337633 to your computer and use it in GitHub Desktop.
{
"settings": {
"index": {
"mapping": {
"ignore_malformed": "true"
},
"refresh_interval": "30s",
"store": {
"compress": {
"tv": "true",
"stored": "true"
}
},
"analysis": {
"filter": {
"truncate_filter": {
"length": "8",
"type": "truncate"
},
"substring_filter": {
"type": "nGram",
"min_gram": "1",
"max_gram": "8"
}
},
"analyzer": {
"substring_lowercase": {
"filter": [
"lowercase",
"substring_filter"
],
"tokenizer": "keyword"
},
"lowercase_keyword": {
"filter": "lowercase",
"tokenizer": "keyword"
},
"substring_keyword": {
"filter": "substring_filter",
"tokenizer": "keyword"
},
"truncate_keyword": {
"filter": "truncate_filter",
"tokenizer": "keyword"
},
"lowercase_truncate_keyword": {
"filter": [
"lowercase",
"truncate_filter"
],
"tokenizer": "keyword"
}
}
},
"number_of_shards": "5",
"number_of_replicas": "0"
}
},
"mappings": {
"_default_": {
"_source": {
"enabled": true
},
"_all": {
"enabled": false
},
"date_detection": false,
"dynamic_templates": [
{
"string_search_template": {
"path_match": "*.*",
"match_mapping_type": "string",
"match": "*_string",
"mapping": {
"type": "string",
"index_options": "docs",
"index": "not_analyzed",
"term_vector": "with_offsets",
"fields": {
"lowercase": {
"index_options": "docs",
"type": "string",
"analyzer": "lowercase_keyword",
"term_vector": "with_offsets",
"norms": {
"loading": "eager"
}
}
}
}
}
},
{
"float_template": {
"path_match": "*.*",
"match": "*_float",
"match_mapping_type": "string",
"mapping": {
"index_options": "docs",
"type": "float",
"norms": {
"enabled": false
}
}
}
},
{
"bool_template": {
"path_match": "*.*",
"match": "*_bool",
"match_mapping_type": "boolean",
"mapping": {
"index_options": "docs",
"type": "boolean",
"norms": {
"enabled": false
}
}
}
},
{
"integer_template": {
"path_match": "*.*",
"match": "*_int",
"match_mapping_type": "long",
"mapping": {
"index_options": "docs",
"type": "integer",
"norms": {
"loading": "eager"
}
}
}
},
{
"nested_template": {
"match": "*_nested",
"match_mapping_type": "object",
"mapping": {
"index_options": "docs",
"type": "nested",
"norms": {
"loading": "eager"
}
}
}
},
{
"date_template": {
"match": "*_date",
"mapping": {
"type": "date"
}
}
},
{
"string_template": {
"match_mapping_type": "string",
"mapping": {
"type": "string",
"index_options": "docs",
"term_vector": "with_offsets",
"index": "not_analyzed",
"norms": {
"loading": "eager"
}
}
}
}
]
},
"customer": {
"properties": {
"xngGlobalUserId": {
"type": "string",
"index": "no"
}
}
},
"event": {
"_parent": {
"type": "customer"
},
"properties": {
"eventUUID": {
"type": "string",
"index": "no"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment