diff options
-rw-r--r-- | src/es5/es-query.json | 2 | ||||
-rw-r--r-- | src/es5/sfive-init.json | 23 |
2 files changed, 9 insertions, 16 deletions
diff --git a/src/es5/es-query.json b/src/es5/es-query.json index c73d079..5bec12f 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['hostname'].value, doc['streamer-id.content-id'].value, doc['streamer-id.format'].value, doc['streamer-id.quality'].value ].join('/') " } }, "the_total_time": { diff --git a/src/es5/sfive-init.json b/src/es5/sfive-init.json index 75e284e..3dd33d7 100644 --- a/src/es5/sfive-init.json +++ b/src/es5/sfive-init.json @@ -1,24 +1,15 @@ { "settings": { - "index" : { - "analysis" : { - "analyzer" : { - "default" : { - "type" : "keyword" - } - } - } - } }, "mappings" : { "dataupdate" : { "properties" : { - "source-id": { "type": "string" }, "SourceHubDataUpdateId" : { "type" : "long" }, "SourceHubUuid" : { - "type" : "string" + "type" : "string", + "index" : "not_analyzed" }, "data" : { "properties" : { @@ -38,7 +29,7 @@ }, "hostname" : { "type" : "string", - "copy_to": "source-id" + "index" : "not_analyzed" }, "start-time" : { "type" : "date", @@ -48,13 +39,15 @@ "properties" : { "content-id" : { "type" : "string", - "copy_to": "source-id" + "index" : "not_analyzed" }, "format" : { - "type" : "string" + "type" : "string", + "index" : "not_analyzed" }, "quality" : { - "type" : "string" + "type" : "string", + "index" : "not_analyzed" } } }, |