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 | |
parent | fixed usage output (diff) |
creating index with keyword tokenizer
-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 | ||||
-rwxr-xr-x | src/hub/test-fwd-es | 2 |
3 files changed, 13 insertions, 2 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" : { diff --git a/src/hub/test-fwd-es b/src/hub/test-fwd-es index e54b0c2..3f3eb12 100755 --- a/src/hub/test-fwd-es +++ b/src/hub/test-fwd-es @@ -1,5 +1,5 @@ #!/bin/sh rm -f /run/sfive/pipe /run/sfive/pipegram -./bin/sfive-hub -start-pipe-server=false -start-pipegram-server=false -start-web-server=false -db db.sqlite -forward-es-url="http://localhost:9200/test" +./bin/sfive-hub -start-pipe-server=false -start-pipegram-server=false -start-web-server=false -db db.sqlite -forward-es-url="http://stream.elevate.at:9200/e14" |