diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-11-27 21:50:13 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-11-27 21:50:13 +0100 |
commit | dc8bc8200bb7382abdaea06551d36386c7996ee0 (patch) | |
tree | b12b6d3e3b9cc8c05d38bab2c4ecd4842bab66b6 /src/es5 | |
parent | fixed usage output (diff) |
creating index with keyword tokenizer
Diffstat (limited to 'src/es5')
-rwxr-xr-x | src/es5/create-index-es | 2 | ||||
-rw-r--r-- | src/es5/sfive-init.json (renamed from src/es5/sfive-mapping.json) | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/es5/create-index-es b/src/es5/create-index-es index 7612f68..3318cea 100755 --- a/src/es5/create-index-es +++ b/src/es5/create-index-es @@ -5,4 +5,4 @@ if [ -z "$1" ]; then exit 1 fi -curl -XPOST 'http://stream.elevate.at:9200/'"$1"'?pretty' -d @sfive-mapping.json +curl -XPOST 'http://stream.elevate.at:9200/'"$1"'?pretty' -d @sfive-init.json diff --git a/src/es5/sfive-mapping.json b/src/es5/sfive-init.json index 6ed1772..75e284e 100644 --- a/src/es5/sfive-mapping.json +++ b/src/es5/sfive-init.json @@ -1,4 +1,15 @@ { + "settings": { + "index" : { + "analysis" : { + "analyzer" : { + "default" : { + "type" : "keyword" + } + } + } + } + }, "mappings" : { "dataupdate" : { "properties" : { |