-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 빠진 gradle 모듈 추가 - elastic search 연동시 필요한 json 파일 추가
- Loading branch information
Showing
5 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
service/search-service/src/main/resources/elasticsearch-restaurant-nested-mapping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"properties": { | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"restaurantName": { | ||
"type": "text", | ||
"analyzer": "nori_synonym_analyzer", | ||
"search_analyzer": "nori_synonym_analyzer" | ||
}, | ||
"deliveryLocation": { | ||
"type": "keyword" | ||
}, | ||
"menus": { | ||
"type": "nested", | ||
"properties": { | ||
"menuName": { | ||
"type": "text", | ||
"analyzer": "nori_synonym_analyzer", | ||
"search_analyzer": "nori_synonym_analyzer" | ||
}, | ||
"menuId": { | ||
"type": "long" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
service/search-service/src/main/resources/elasticsearch-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0, | ||
"analysis": { | ||
"analyzer": { | ||
"nori_synonym_analyzer": { | ||
"tokenizer": "nori_tokenizer", | ||
"filter": [ | ||
"nori_posfilter", | ||
"nori_readingform", | ||
"lowercase", | ||
"synonym_filter" | ||
] | ||
} | ||
}, | ||
"filter": { | ||
"synonym_filter": { | ||
"type": "synonym", | ||
"synonyms_path": "synonyms.txt" | ||
}, | ||
"nori_posfilter": { | ||
"type": "nori_part_of_speech", | ||
"stoptags": [ | ||
"E", | ||
"IC", | ||
"J", | ||
"MAG", | ||
"MAJ", | ||
"MM", | ||
"SP", | ||
"SSC", | ||
"SSO", | ||
"SC", | ||
"SE", | ||
"XPN", | ||
"XSA", | ||
"XSN", | ||
"XSV", | ||
"UNA", | ||
"NA", | ||
"VSV" | ||
] | ||
} | ||
} | ||
} | ||
} |