Skip to content

@ianAndrewClark /gist:1171014
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
location mapping, with settings
{
"mappings": {
"locations": {
"properties": {
"recordId": {
"type": "long"
},
"namePlain": {
"type": "string",
"store": "no",
"analyzer": "plainAnalyzer"
},
"nameSounds": {
"type": "string",
"store": "no",
"analyzer": "soundsAnalyzer"
},
"location": {
"type": "geo_point"
}
}
}
},
"settings": {
"index": {
"number_of_shards": 6,
"number_of_replicas": 1
},
"analysis": {
"filter": {
"soundsFilter": {
"type": "phonetic",
"encoder": "double_metaphone",
"replace": true
}
},
"analyzer": {
"soundsAnalyzer": {
"tokenizer": "standard",
"filter": [
"standard",
"lowercase",
"soundsFilter"
]
},
"plainAnalyzer": {
"type": "standard",
"stopwords": "_none_"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.