Commit 16144dfb authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade mapping de taxonomy

parent 0884bb9f
Loading
Loading
Loading
Loading
+140 −0
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"
                    ]
                },
                "split-path-analyzer": {
                    "type": "custom",
                    "tokenizer": "split-path-tokenizer"
                },
                "path-analyzer": {
                    "type": "custom",
                    "tokenizer": "path-tokenizer"
                }
            },
            "tokenizer": {
                "split-path-tokenizer": {
                    "type": "pattern",
                    "delimiter": "\\."
                },
                "path-tokenizer": {
                    "type": "path_hierarchy",
                    "delimiter": "."
                }
            },
            "filter": {
                "nGram_filter": {
                    "type": "nGram",
                    "min_gram": 2,
                    "max_gram": 20
                }
            }
        }
    },
    "mappings": {
        "_doc": {
            "dynamic": "false",
            "properties": {
                "id": {
                    "type": "long"
                },
                "aphia": {
                    "type": "keyword",
                    "fields": {
                        "suggest": {
                            "type": "text",
                            "analyzer": "autocomplete",
                            "search_analyzer": "lower_analyzer"
                        }
                    }
                },
                "scientificName": {
                    "type": "keyword",
                    "fields": {
                        "suggest": {
                            "type": "text",
                            "analyzer": "autocomplete",
                            "search_analyzer": "lower_analyzer"
                        }
                    }
                },
                "authorship": {
                    "type": "keyword",
                    "fields": {
                        "suggest": {
                            "type": "text",
                            "analyzer": "autocomplete",
                            "search_analyzer": "lower_analyzer"
                        }
                    }
                },
                "commonName": {
                    "type": "keyword",
                    "fields": {
                        "suggest": {
                            "type": "text",
                            "analyzer": "autocomplete",
                            "search_analyzer": "lower_analyzer"
                        }
                    }
                },
                "rank": {
                    "dynamic": "false",
                    "properties": {
                        "id": {
                            "type": "integer"
                        },
                        "name": {
                            "type": "keyword"
                        }
                    }
                },
                "path": {
                    "type": "keyword",
                    "fields": {
                        "split": {
                            "type": "text",
                            "analyzer": "split-path-analyzer"
                        },
                        "path": {
                            "type": "text",
                            "analyzer": "path-analyzer",
                            "store": true
                        }
                    }
                },
                "leaves": {
                    "type": "long"
                },
                "wormsUpdated": {
                    "type": "date",
                    "format": "date_optional_time"
                },
                "updated": {
                    "type": "date",
                    "format": "date_optional_time"
                }
            }
        }
    }
}