aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-01 11:50:30 +0300
committerGravatar Vitaly Takmazov2018-06-01 11:50:30 +0300
commitdf9123eae0c3eaf637e7ac2622096459c42774c0 (patch)
tree1e65ef0850a191cd61bcace03b5d12781508a443
parentc549a5493b40aa639f9af898e1490344c0aa2b3b (diff)
server: handmade SphinxSE query mapping, fix
-rw-r--r--juick-server-jdbc/src/main/java/com/juick/service/SphinxSearchService.java4
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);
}