From 3f49afa12c47fd4cb2a883688ca2bf2a2057f219 Mon Sep 17 00:00:00 2001 From: Bob Sin Date: Tue, 14 May 2024 04:04:43 +0900 Subject: [PATCH] =?UTF-8?q?[KAN-62]=20es=20=EB=A6=AC=EB=B7=B0=EC=B9=B4?= =?UTF-8?q?=EC=9A=B4=ED=8A=B8,=20=ED=8F=89=EC=A0=90=20=EB=84=A4=EC=9D=B4?= =?UTF-8?q?=EB=B0=8D=20=EB=B3=80=EA=B2=BD=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csv-to-es.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csv-to-es.py b/csv-to-es.py index 850d85e..aa8591d 100644 --- a/csv-to-es.py +++ b/csv-to-es.py @@ -30,9 +30,9 @@ "properties": { "name": {"type": "text", "analyzer": "korean"}, "category": {"type": "text", "analyzer": "korean"}, - "review_count": {"type": "text", "analyzer": "korean"}, + "naver_review_count": {"type": "text", "analyzer": "korean"}, "address": {"type": "text", "analyzer": "korean"}, - "rating": {"type": "float"}, + "naver_rating": {"type": "float"}, "number": {"type": "text"}, "image_url": {"type": "text"}, "custom_category": {"type": "text", "analyzer": "korean"}, @@ -80,9 +80,9 @@ response = es.index(index=index_name, id=row['name'], document={ "name": row['name'], "category": row['category'], - "review_count": row['review_count'], + "naver_review_count": row['review_count'], "address": row['address'], - "rating": rating, + "naver_rating": rating, "number": number, "image_url": restaurant_image_url, "custom_category": row['custom_category'],