Skip to content

Commit

Permalink
[KAN-42] es batch 작업
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok committed May 8, 2024
1 parent 5fcfae7 commit d72f293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csv-to-es.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
index_name = f"restaurant_{now.strftime('%Y_%m_%d_%H-%M')}"

# Elasticsearch 클라이언트 설정
es = Elasticsearch("http://localhost:9200")
es = Elasticsearch("es-singlenode:9200")

# 새 인덱스 생성 및 매핑 설정
if not es.indices.exists(index=index_name):
Expand Down

0 comments on commit d72f293

Please sign in to comment.