diff options
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/SphinxSearchService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/service/SphinxSearchService.java b/juick-server/src/main/java/com/juick/service/SphinxSearchService.java index f102ab47d..f2f31295d 100644 --- a/juick-server/src/main/java/com/juick/service/SphinxSearchService.java +++ b/juick-server/src/main/java/com/juick/service/SphinxSearchService.java @@ -46,7 +46,7 @@ public class SphinxSearchService extends BaseJdbcService implements SearchServic Map<String, String> sphinxQuery = new HashMap<>(); sphinxQuery.put("limit", String.valueOf(maxResult)); sphinxQuery.put("mode", "any"); - sphinxQuery.put("sort", "extended:@id desc"); + sphinxQuery.put("sort", "extended:@weight desc, @id desc"); if (messageIdBefore > 0) { sphinxQuery.put("maxid", String.valueOf(messageIdBefore - 1)); } @@ -65,7 +65,7 @@ public class SphinxSearchService extends BaseJdbcService implements SearchServic Map<String, String> sphinxQuery = new HashMap<>(); sphinxQuery.put("limit", String.valueOf(maxResult)); sphinxQuery.put("mode", "any"); - sphinxQuery.put("sort", "extended:@id desc"); + sphinxQuery.put("sort", "extended:@weight desc, @id desc"); if (messageIdBefore > 0) { sphinxQuery.put("maxid", String.valueOf(messageIdBefore - 1)); } |