Skip to content

Commit

Permalink
[fix] 오류 수정
Browse files Browse the repository at this point in the history
- 빠진 gradle 모듈 추가
- elastic search 연동시 필요한 json 파일 추가
  • Loading branch information
huiseung committed Aug 24, 2024
1 parent dd1c448 commit f8920df
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 4 deletions.
4 changes: 3 additions & 1 deletion domain/exposure-domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ dependencies {

// module
implementation project(":core-web")
implementation project(":api-client:cache-client")
implementation project(":api-client:search-client")
implementation project(":api-client:delivery-client")
implementation project(":api-client:coupon-client")
implementation project(":api-client:advertisement-client")
implementation project(":domain:exposure-common-domain")
// implementation project(":domain:search-domain-rdb")
implementation project(":domain:search-domain-es")
// implementation project(":domain:search-domain-es")
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
public class RestaurantExposureListService {

private final SearchApiCaller searchApiCaller;
private final CacheApiCaller cacheApiCaller;
private final AsyncExternalApiCaller asyncExternalApiCaller;

public List<ExposureRestaurantSummary> search(SearchCommand command) {
Expand Down
4 changes: 2 additions & 2 deletions service/search-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies {
implementation project(":core-web")
implementation project(":api-client:search-client")
implementation project(":domain:exposure-common-domain")
implementation project(":domain:search-domain-rdb")
// implementation project(":domain:search-domain-es")
//implementation project(":domain:search-domain-rdb")
implementation project(":domain:search-domain-es")
}

tasks.named('test') {
Expand Down
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"
}
}
}
}
}
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"
]
}
}
}
}

0 comments on commit f8920df

Please sign in to comment.