aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-13 15:48:06 +0300
committerGravatar Vitaly Takmazov2018-09-13 15:48:06 +0300
commit81d8aa968c4f0f38a607ae85108569b23f5e5958 (patch)
treef094c9587060ec3792693a592baddcf3b705a5ce /juick-server/src/main/java/com/juick/service
parent62d4f6f3fabe69b0e08195e99eedd72442bffa68 (diff)
fix sphinxse query
Diffstat (limited to 'juick-server/src/main/java/com/juick/service')
-rw-r--r--juick-server/src/main/java/com/juick/service/SphinxSearchService.java2
1 files changed, 1 insertions, 1 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 cdd5e92d..de7bd7f2 100644
--- a/juick-server/src/main/java/com/juick/service/SphinxSearchService.java
+++ b/juick-server/src/main/java/com/juick/service/SphinxSearchService.java
@@ -58,7 +58,7 @@ public class SphinxSearchService extends BaseJdbcService implements SearchServic
sphinxQuery.put("mode", "any");
sphinxQuery.put("sort", sortHint(searchString));
String usersFilter = userService.getUserBLUsers(visitor.getUid()).stream().map(u -> String.valueOf(u.getUid())).collect(Collectors.joining(","));
- sphinxQuery.put("!filter", usersFilter);
+ sphinxQuery.put("!filter", "user_id," + usersFilter);
if (page > 0) {
sphinxQuery.put("offset", String.valueOf(page * maxResult));
}