Skip to content

Commit

Permalink
[KAN-62] es 리뷰카운트, 평점 네이밍 변경 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok authored May 13, 2024
1 parent 0b4f0b1 commit 3f49afa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions csv-to-es.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 3f49afa

Please sign in to comment.