代码还原
This commit is contained in:
parent
ce22c9b7ff
commit
c1025b7268
@ -104,10 +104,7 @@ public class EsGoodsSearchServiceImpl implements EsGoodsSearchService {
|
||||
@Override
|
||||
public List<String> getHotWords(Integer count) {
|
||||
List<String> hotWords = new ArrayList<>();
|
||||
if (hotWords.isEmpty() || hotWords == null) {
|
||||
return null;
|
||||
}
|
||||
//下表从0开始,所以count-1
|
||||
//下标从0开始,所以count-1
|
||||
count = count - 1;
|
||||
Set<DefaultTypedTuple> set = cache.reverseRangeWithScores(CachePrefix.HOT_WORD.getPrefix(), count);
|
||||
for (DefaultTypedTuple defaultTypedTuple : set) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user