diff options
author | Vitaly Takmazov | 2018-06-01 11:50:30 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-06-01 11:50:30 +0300 |
commit | df9123eae0c3eaf637e7ac2622096459c42774c0 (patch) | |
tree | 1e65ef0850a191cd61bcace03b5d12781508a443 /juick-server-jdbc/src/main/java | |
parent | c549a5493b40aa639f9af898e1490344c0aa2b3b (diff) |
server: handmade SphinxSE query mapping, fix
Diffstat (limited to 'juick-server-jdbc/src/main/java')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/SphinxSearchService.java | 4 |
1 files 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); } |