summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-11-27 21:50:13 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-11-27 21:50:13 +0100
commitdc8bc8200bb7382abdaea06551d36386c7996ee0 (patch)
treeb12b6d3e3b9cc8c05d38bab2c4ecd4842bab66b6
parentfixed usage output (diff)
creating index with keyword tokenizer
-rwxr-xr-xsrc/es5/create-index-es2
-rw-r--r--src/es5/sfive-init.json (renamed from src/es5/sfive-mapping.json)11
-rwxr-xr-xsrc/hub/test-fwd-es2
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"