Last active
October 19, 2018 10:23
-
-
Save mapcentia/d4a3893649e12100549f to your computer and use it in GitHub Desktop.
Example of settings in /var/www/geocloud2/app/conf/elasticsearch_settings.json
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": 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