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):
if scope.get("scope") == "tweet":
tweets_body = {
"mappings": {
"items": {
config.Index_type: {
"properties": {
"id": {"type": "long"},
"conversation_id": {"type": "long"},
......@@ -99,7 +99,7 @@ def createIndex(config, instance, **scope):
elif scope.get("scope") == "follow":
follow_body = {
"mappings": {
"items": {
config.Index_type: {
"properties": {
"user": {"type": "keyword"},
"follow": {"type": "keyword"},
......@@ -117,7 +117,7 @@ def createIndex(config, instance, **scope):
elif scope.get("scope") == "user":
user_body = {
"mappings": {
"items": {
config.Index_type: {
"properties": {
"id": {"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