Created
December 14, 2017 17:40
-
-
Save clodio/20f830b6bc560072a69cec39c77dad07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _search | |
{ | |
"query": { | |
"match_all": {} | |
} | |
} | |
DELETE /ban | |
PUT /ban | |
{ | |
"settings" : { | |
"number_of_shards" : 1, | |
"analysis": { | |
"analyzer": { | |
"autocomplete": { | |
"type": "custom", | |
"tokenizer": "standard", | |
"filter": [ | |
"standard", | |
"lowercase", | |
"stop", | |
"kstem", | |
"ngram_filter" | |
] | |
}, | |
"ngram_analyzer": { | |
"type": "custom", | |
"tokenizer": "whitespace", | |
"filter": [ | |
"lowercase", | |
"asciifolding", | |
"ngram_filter" | |
] | |
}, | |
"whitespace_analyzer": { | |
"type": "custom", | |
"tokenizer": "whitespace", | |
"filter": [ | |
"lowercase", | |
"asciifolding" | |
] | |
} | |
}, | |
"filter": { | |
"ngram_filter": { | |
"type": "nGram", | |
"min_gram": 3, | |
"max_gram": 15, | |
"token_chars": [ | |
"letter", | |
"digit", | |
"punctuation", | |
"symbol" | |
] | |
} | |
} | |
} | |
}, | |
"mappings": { | |
"address": { | |
"_all": { | |
"analyzer": "ngram_analyzer", | |
"search_analyzer": "whitespace_analyzer" | |
}, | |
"properties": { | |
"@timestamp": { | |
"type": "date", | |
"format": "strict_date_optional_time||epoch_millis" | |
}, | |
"@version": { | |
"type": "text" | |
}, | |
"alias": { | |
"type": "text", | |
"include_in_all": false | |
}, | |
"code_insee": { | |
"type": "integer", | |
"include_in_all": false | |
}, | |
"code_post": { | |
"type": "text" | |
}, | |
"host": { | |
"type": "text", | |
"include_in_all": false | |
}, | |
"id": { | |
"type": "text" | |
}, | |
"id_fantoir": { | |
"type": "text", | |
"include_in_all": false | |
}, | |
"libelle_acheminement": { | |
"type": "text", | |
"include_in_all": false | |
}, | |
"location": { | |
"type": "geo_point" | |
}, | |
"lonlat": { | |
"type": "text" | |
}, | |
"message": { | |
"type": "text" | |
}, | |
"nom_afnor": { | |
"type": "text" | |
}, | |
"nom_commune": { | |
"type": "text" | |
}, | |
"nom_ld": { | |
"type": "text" | |
}, | |
"nom_voie": { | |
"type": "text" | |
}, | |
"numero": { | |
"type": "integer" | |
}, | |
"path": { | |
"type": "text" | |
}, | |
"rep": { | |
"type": "text" | |
}, | |
"x": { | |
"type": "text", | |
"include_in_all": false | |
}, | |
"y": { | |
"type": "text", | |
"include_in_all": false | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment