diff --git a/src/indexer.py b/src/indexer.py index a4843ceb70a2e77150d695f13076015e59a87e91..023af245498d145f766c80443a757a7b3f689b24 100644 --- a/src/indexer.py +++ b/src/indexer.py @@ -3,8 +3,6 @@ from time import sleep from typing import List import post -doc_type = "post" - def connect_elastic(host='localhost', port=9200): MAXIMUM_ATTEMPS = 12 @@ -46,5 +44,5 @@ def index_posts(es: Elasticsearch, posts: List[post.Post], hash: str): index_name = get_index_name(post.lang, hash) - es.index(index=index_name, doc_type=doc_type, id=post.id, body=doc) + es.index(index=index_name, id=post.id, body=doc) print("Created doc for " + post.url)