replace score with score.desc
This commit is contained in:
parent
e0b76ad035
commit
7f08456c74
1 changed files with 5 additions and 1 deletions
|
@ -120,7 +120,11 @@ public interface FessProp {
|
|||
if (pair.length == 1) {
|
||||
return new Pair<>(StringUtil.EMPTY, pair[0].trim());
|
||||
} else if (pair.length == 2) {
|
||||
return new Pair<>(pair[0].trim(), pair[1].trim());
|
||||
String sortValue = pair[1].trim();
|
||||
if (StringUtil.isBlank(sortValue) || "score".equals(sortValue)) {
|
||||
sortValue = "score.desc";
|
||||
}
|
||||
return new Pair<>(pair[0].trim(), sortValue);
|
||||
}
|
||||
return null;
|
||||
}).filter(o -> o != null && keySet.add(o.getFirst())).collect(Collectors.toMap(Pair::getFirst, d -> d.getSecond()));
|
||||
|
|
Loading…
Add table
Reference in a new issue