We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b730cf commit 609196fCopy full SHA for 609196f
1 file changed
server/src/main/java/invite/api/FullSearchQueryParser.java
@@ -30,6 +30,7 @@ public static String parse(String query) {
30
throw new InvalidInputException("Full text query parameter has @NotNull @NotBlank requirement");
31
}
32
String parsedQuery = Stream.of(query.split("[ @.,+*-]"))
33
+ //MariaDB does not tokenize words shorter than 3
34
.filter(part -> !(part.isEmpty() || part.length() < 3 || stopWords.contains(part.toLowerCase()) ))
35
.map(part -> "+" + part)
36
.collect(Collectors.joining(" "));
0 commit comments