diff options
author | Vitaly Takmazov | 2020-06-05 12:17:52 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-06-05 12:17:52 +0300 |
commit | 85c5c69ffb5a14258eafb4c67c550f6018b3c621 (patch) | |
tree | e7f3f6ef8680aad33ed0802ca681821cbfe69cca /src/main/java/com/juick/www/api/Messages.java | |
parent | 63a52408f430cb2109943c18c37adef5c3bd8da0 (diff) |
Append * to keyword search
Diffstat (limited to 'src/main/java/com/juick/www/api/Messages.java')
-rw-r--r-- | src/main/java/com/juick/www/api/Messages.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/Messages.java b/src/main/java/com/juick/www/api/Messages.java index de29c78c..29c4c0ba 100644 --- a/src/main/java/com/juick/www/api/Messages.java +++ b/src/main/java/com/juick/www/api/Messages.java @@ -119,7 +119,7 @@ public class Messages { } else if (daysback > 0) { mids = messagesService.getUserBlogAtDay(user.getUid(), 0, daysback); } else if (!StringUtils.isEmpty(search)) { - mids = messagesService.getUserSearch(visitor, user.getUid(), WebUtils.encodeSphinx(search), 0, page); + mids = messagesService.getUserSearch(visitor, user.getUid(), WebUtils.encodeSphinx(search), 0, page, false); } else { mids = messagesService.getUserBlog(user.getUid(), 0, before); } @@ -139,7 +139,7 @@ public class Messages { return NOT_FOUND; } } else if (!StringUtils.isEmpty(search)) { - mids = messagesService.getSearch(visitor, WebUtils.encodeSphinx(search), page); + mids = messagesService.getSearch(visitor, WebUtils.encodeSphinx(search), page, false); } else { mids = messagesService.getAll(visitor.getUid(), before); } |