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