From 81d8aa968c4f0f38a607ae85108569b23f5e5958 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 13 Sep 2018 15:48:06 +0300 Subject: fix sphinxse query --- juick-server/src/main/java/com/juick/service/SphinxSearchService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java') 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)); } -- cgit v1.2.3