Skip to content

Commit a8e2d83

Browse files
committed
- Ranking Expression cache on update and Expression value with two points was fixed
1 parent 93c21b9 commit a8e2d83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

turing-app/src/main/java/com/viglet/turing/api/sn/console/TurSNRankingExpressionAPI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public TurSNRankingExpression turSNRankingExpressionGet(@PathVariable String snS
8585

8686
@Operation(summary = "Update a Semantic Navigation Ranking Expression")
8787
@PutMapping("/{id}")
88+
@CacheEvict(value = {TurSNRankingConditionRepository.FIND_BY_TUR_SN_RANKING_EXPRESSION}, allEntries = true)
8889
public TurSNRankingExpression turSNRankingExpressionUpdate(@PathVariable String id,
8990
@RequestBody TurSNRankingExpression turSNRankingExpression,
9091
@PathVariable String snSiteId) {

turing-app/src/main/java/com/viglet/turing/solr/TurSolr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private String boostQueryAttributes(TurSNRankingExpression expression, List<TurS
425425
return String.format("_query_:\"" + RECENT_DATES + "\"",
426426
condition.getAttribute());
427427
}
428-
return String.format("%s:%s", condition.getAttribute(), condition.getValue());
428+
return String.format("%s:\"%s\"", condition.getAttribute(), condition.getValue());
429429
})
430430
.collect(Collectors.joining(betweenSpaces(AND)));
431431
}

0 commit comments

Comments
 (0)