Commit 84cc81d2 authored by Francesco Poldi's avatar Francesco Poldi

Index_type in index creation

parent 6037b709
...@@ -55,7 +55,7 @@ def createIndex(config, instance, **scope): ...@@ -55,7 +55,7 @@ def createIndex(config, instance, **scope):
if scope.get("scope") == "tweet": if scope.get("scope") == "tweet":
tweets_body = { tweets_body = {
"mappings": { "mappings": {
"items": { config.Index_type: {
"properties": { "properties": {
"id": {"type": "long"}, "id": {"type": "long"},
"conversation_id": {"type": "long"}, "conversation_id": {"type": "long"},
...@@ -99,7 +99,7 @@ def createIndex(config, instance, **scope): ...@@ -99,7 +99,7 @@ def createIndex(config, instance, **scope):
elif scope.get("scope") == "follow": elif scope.get("scope") == "follow":
follow_body = { follow_body = {
"mappings": { "mappings": {
"items": { config.Index_type: {
"properties": { "properties": {
"user": {"type": "keyword"}, "user": {"type": "keyword"},
"follow": {"type": "keyword"}, "follow": {"type": "keyword"},
...@@ -117,7 +117,7 @@ def createIndex(config, instance, **scope): ...@@ -117,7 +117,7 @@ def createIndex(config, instance, **scope):
elif scope.get("scope") == "user": elif scope.get("scope") == "user":
user_body = { user_body = {
"mappings": { "mappings": {
"items": { config.Index_type: {
"properties": { "properties": {
"id": {"type": "keyword"}, "id": {"type": "keyword"},
"name": {"type": "keyword"}, "name": {"type": "keyword"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment