Commit 6d2f06bc authored by Noel Alonso's avatar Noel Alonso
Browse files

Elimina mapping del servicio topónimos

parent 6c6385c2
Loading
Loading
Loading
Loading
+0 −90
Original line number Diff line number Diff line
{
	"settings": {
		"index": {
			"max_ngram_diff": 18,
			"number_of_shards": 3
		},
		"analysis": {
			"analyzer": {
				"lower_analyzer": {
					"type": "custom",
					"tokenizer": "standard",
					"filter": ["lowercase", "asciifolding"]
				},
				"autocomplete": {
					"type": "custom",
					"tokenizer": "whitespace",
					"filter": ["lowercase", "asciifolding", "nGram_filter"]
				}
			},
			"tokenizer": {},
			"filter": {
				"nGram_filter": {
					"type": "nGram",
					"min_gram": 2,
					"max_gram": 20
				}
			}
		}
	},
	"mappings": {
		"_doc": {
			"dynamic": "false",
			"properties": {
				"geometry": {
					"type": "geo_shape"
				},
				"id": {
					"type": "long"
				},
				"uuid": {
					"type": "keyword"
				},
				"properties": {
					"dynamic": "false",
					"properties": {
						"name": {
							"type": "keyword",
							"fields": {
								"suggest": {
									"type": "text",
									"analyzer": "autocomplete",
									"search_analyzer": "lower_analyzer"
								}
							}
						},
						"description": {
							"type": "text",
							"analyzer": "spanish",
							"fields": {
								"suggest": {
									"type": "text",
									"analyzer": "autocomplete",
									"search_analyzer": "lower_analyzer"
								}
							}
						},
						"zoomLevel": {
							"type": "long"
						},
						"toponymType": {
							"dynamic": "false",
							"properties": {
								"id": {
									"type": "long"
								},
								"name": {
									"type": "keyword"
								}
							}
						},
						"updated": {
							"type": "date",
							"format": "date_time"
						}
					}
				}
			}
		}
	}
}