From df9123eae0c3eaf637e7ac2622096459c42774c0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 1 Jun 2018 11:50:30 +0300 Subject: server: handmade SphinxSE query mapping, fix --- .../src/main/java/com/juick/service/SphinxSearchService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juick-server-jdbc/src/main/java/com/juick/service/SphinxSearchService.java b/juick-server-jdbc/src/main/java/com/juick/service/SphinxSearchService.java index 7de0680e..f102ab47 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/SphinxSearchService.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/SphinxSearchService.java @@ -53,7 +53,7 @@ public class SphinxSearchService extends BaseJdbcService implements SearchServic return getJdbcTemplate().queryForList( String.format("SELECT id FROM search WHERE query = '%s;%s'", searchString, - sphinxQuery.keySet().stream().map(Object::toString) + sphinxQuery.entrySet().stream().map(Object::toString) .collect(Collectors.joining(";"))), Integer.class); } @@ -71,7 +71,7 @@ public class SphinxSearchService extends BaseJdbcService implements SearchServic } return getJdbcTemplate().queryForList( String.format("SELECT id FROM search WHERE query = '%s;%s;filter=user_id,%d'", searchString, - sphinxQuery.keySet().stream().map(Object::toString) + sphinxQuery.entrySet().stream().map(Object::toString) .collect(Collectors.joining(";")), userId), Integer.class); } -- cgit v1.2.3