aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-05-02 21:53:40 +0200
committerChristian Schneppe <christian@pix-art.de>2018-05-02 21:53:40 +0200
commit553755d757b381b047b702f715247f2e50b03c4a (patch)
tree3228d7f8dc951c92cbe7c755c45b51f28ae9f690 /src/main/java/de/pixart/messenger/utils
parentad9bc429171c8196a9cd68d36794e3de9b6d7270 (diff)
only search text messages
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r--src/main/java/de/pixart/messenger/utils/FtsUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/FtsUtils.java b/src/main/java/de/pixart/messenger/utils/FtsUtils.java
index c6870d07e..ee4f10da5 100644
--- a/src/main/java/de/pixart/messenger/utils/FtsUtils.java
+++ b/src/main/java/de/pixart/messenger/utils/FtsUtils.java
@@ -45,7 +45,7 @@ public class FtsUtils {
continue;
}
final String cleaned = clean(part);
- if (isKeyword(cleaned)) {
+ if (isKeyword(cleaned) || cleaned.contains("*")) {
term.add(part);
} else if (!cleaned.isEmpty()) {
term.add(cleaned);
@@ -71,7 +71,7 @@ public class FtsUtils {
return builder.toString();
}
- public static boolean isKeyword(String term) {
+ static boolean isKeyword(String term) {
return KEYWORDS.contains(term.toUpperCase(Locale.ENGLISH));
}