summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-11-27 23:24:21 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-11-27 23:24:21 +0100
commitc86be1a778d925261c88e070ea07ab8c5fde27dd (patch)
tree18e86079b76a3e2b8b753b9b8834c85f362604e8 /src
parentcreating index with keyword tokenizer (diff)
concatenation of source-id values work now
Diffstat (limited to 'src')
-rw-r--r--src/es5/es-query.json2
-rw-r--r--src/es5/sfive-init.json28
2 files changed, 16 insertions, 14 deletions
diff --git a/src/es5/es-query.json b/src/es5/es-query.json
index c73d079..1be731d 100644
--- a/src/es5/es-query.json
+++ b/src/es5/es-query.json
@@ -3,7 +3,7 @@
{
"by_hostname":
{
- "terms": { "script": "doc['source-id'].value" }
+ "terms": { "script": "doc['source-id'].values.join('/')" }
},
"the_total_time":
{
diff --git a/src/es5/sfive-init.json b/src/es5/sfive-init.json
index 75e284e..4ebfd92 100644
--- a/src/es5/sfive-init.json
+++ b/src/es5/sfive-init.json
@@ -1,24 +1,20 @@
{
"settings": {
- "index" : {
- "analysis" : {
- "analyzer" : {
- "default" : {
- "type" : "keyword"
- }
- }
- }
- }
},
"mappings" : {
"dataupdate" : {
"properties" : {
- "source-id": { "type": "string" },
+ "source-id": {
+ "type": "string",
+ "index" : "not_analyzed",
+ "store": true
+ },
"SourceHubDataUpdateId" : {
"type" : "long"
},
"SourceHubUuid" : {
- "type" : "string"
+ "type" : "string",
+ "index" : "not_analyzed"
},
"data" : {
"properties" : {
@@ -38,6 +34,7 @@
},
"hostname" : {
"type" : "string",
+ "index" : "not_analyzed",
"copy_to": "source-id"
},
"start-time" : {
@@ -48,13 +45,18 @@
"properties" : {
"content-id" : {
"type" : "string",
+ "index" : "not_analyzed",
"copy_to": "source-id"
},
"format" : {
- "type" : "string"
+ "type" : "string",
+ "index" : "not_analyzed",
+ "copy_to": "source-id"
},
"quality" : {
- "type" : "string"
+ "type" : "string",
+ "index" : "not_analyzed",
+ "copy_to": "source-id"
}
}
},