Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public PopularKeywordResponse calculateAndCacheResult(String key) {
int rank = 1;

for(ZSetOperations.TypedTuple<Object> keyword : popularKewords) {
String keywordValue = (String)keyword.getValue();
String keywordValue = removePlusSign((String)keyword.getValue());
keywordValue = keywordValue.replace("\"", "");

List<PopularProductResponse> popularProducts = findPopularProductsByKeyword(keywordValue, 4);
Expand Down Expand Up @@ -184,4 +184,14 @@ private String convertToBooleanString(String keyword){
.map(word -> "+" + word)
.collect(Collectors.joining(" "));
}

/**
* 검색어 κ²°κ³Ό μ „μ²˜λ¦¬ λ©”μ„œλ“œ
*
* @param keyword DB 쑰회 μ‹œ BOOLEAN MODE둜 μ „μ²˜λ¦¬λœ 검색어
* @return + λ¬Έμžκ°€ λΉ μ§„ 검색어
*/
private String removePlusSign(String keyword){
return keyword.replace("+", "");
}
}