Last active
November 28, 2018 09:34
-
-
Save p3t3r67x0/6e73fcbb35cdc7d57e50d8fdf41656c0 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
{ | |
"settings": { | |
"number_of_shards": 1, | |
"analysis": { | |
"filter": { | |
"ngram_filter": { | |
"type": "edge_ngram", | |
"min_gram": 1, | |
"max_gram": 20 | |
} | |
}, | |
"analyzer": { | |
"ngram_analyzer": { | |
"type": "custom", | |
"tokenizer": "standard", | |
"filter": [ | |
"lowercase", | |
"ngram_filter" | |
] | |
} | |
} | |
} | |
}, | |
"mappings": { | |
"streets": { | |
"properties": { | |
"street": { | |
"type": "text", | |
"term_vector": "yes", | |
"analyzer": "ngram_analyzer", | |
"search_analyzer": "standard" | |
}, | |
"city": { | |
"type": "text", | |
"term_vector": "yes", | |
"analyzer": "ngram_analyzer", | |
"search_analyzer": "standard" | |
}, | |
"zip": { | |
"type": "text", | |
"term_vector": "yes", | |
"analyzer": "ngram_analyzer", | |
"search_analyzer": "standard" | |
}, | |
"district": { | |
"type": "text", | |
"term_vector": "yes" | |
}, | |
"state": { | |
"type": "text", | |
"term_vector": "yes" | |
}, | |
"county": { | |
"type": "text", | |
"term_vector": "yes" | |
}, | |
"country": { | |
"type": "text", | |
"term_vector": "yes" | |
}, | |
"citizen": { | |
"type": "text", | |
"term_vector": "yes" | |
}, | |
"lat": { | |
"type": "text", | |
"term_vector": "yes" | |
}, | |
"lng": { | |
"type": "text", | |
"term_vector": "yes" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment