Skip to content

Instantly share code, notes, and snippets.

@mapcentia
Last active October 19, 2018 10:23
Show Gist options
  • Save mapcentia/d4a3893649e12100549f to your computer and use it in GitHub Desktop.
Save mapcentia/d4a3893649e12100549f to your computer and use it in GitHub Desktop.
Example of settings in /var/www/geocloud2/app/conf/elasticsearch_settings.json
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"auto_complete_search_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": ["lowercase"]
},
"auto_complete_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"substring"
]
},
"husnr": {
"type": "pattern",
"pattern": "([0-9]*)"
}
},
"filter": {
"substring": {
"type": "edgeNGram",
"min_gram": 1,
"max_gram": 255
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment