aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/worker.py')
-rw-r--r--fatcat_scholar/worker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/worker.py b/fatcat_scholar/worker.py
index 78b54d4..fb806a7 100644
--- a/fatcat_scholar/worker.py
+++ b/fatcat_scholar/worker.py
@@ -227,7 +227,7 @@ def main() -> None:
fdw.run()
elif args.worker == "index-docs-worker":
es_client = elasticsearch.Elasticsearch(
- settings.ELASTICSEARCH_BACKEND, timeout=25.0
+ settings.ELASTICSEARCH_WRITE_BASE, timeout=25.0
)
idw = IndexDocsWorker(
kafka_brokers=settings.KAFKA_BROKERS,
@@ -235,7 +235,7 @@ def main() -> None:
consume_topics=[f"scholar-{settings.SCHOLAR_ENV}.update-docs"],
consumer_group=f"scholar-{settings.SCHOLAR_ENV}-index-workers",
es_client=es_client,
- es_index=settings.ELASTICSEARCH_FULLTEXT_INDEX,
+ es_index=settings.ELASTICSEARCH_WRITE_FULLTEXT_INDEX,
)
idw.run()