summaryrefslogtreecommitdiff
path: root/taginfo-config-example.json
diff options
context:
space:
mode:
authorKuang-che Wu <kcwu@csie.org>2014-12-07 14:32:05 +0800
committerKuang-che Wu <kcwu@csie.org>2015-02-05 02:22:29 +0800
commitaeb9ff37d6683236300b0325d65c6ca0ec66c7ed (patch)
treed684d23ecc595a89b10a3557f7fee241a7440803 /taginfo-config-example.json
parent3c885660d95393a1836545ab6ae971fd3311cd6f (diff)
downloadtaginfo-aeb9ff37d6683236300b0325d65c6ca0ec66c7ed.tar
taginfo-aeb9ff37d6683236300b0325d65c6ca0ec66c7ed.tar.gz
make sqlite3 full-text search tokenizer configurable.
OpenStreetMap is an international project. "icu" or other non-default tokenizer may be more suitable for some locales. For example, "icu" tokenizer is better than the default ("simple") for Chinese. We don't want to force all to recompile sqlite3 in order to use "icu" tokenizer, so make it configurable in taginfo-config.json.
Diffstat (limited to 'taginfo-config-example.json')
-rw-r--r--taginfo-config-example.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/taginfo-config-example.json b/taginfo-config-example.json
index 3936308..2c225b2 100644
--- a/taginfo-config-example.json
+++ b/taginfo-config-example.json
@@ -95,7 +95,13 @@
// Minimum number of relations per type to make this
// relation type "interesting", ie. to make it show
// up as a relation type.
- "min_count_relations_per_type": 100
+ "min_count_relations_per_type": 100,
+ // Tokenizer for sqlite full-text search. Complex or custom
+ // tokenizers, e.g., icu and unicode61, may be more suitable for
+ // some locales. You may need newer sqlite3 or to recompile
+ // sqlite3 to use those tokenizers.
+ // See http://www.sqlite.org/fts3.html#tokenizer for detail.
+ "tokenizer": "simple"
}
},
"logging": {