Skip to content

Commit 609196f

Browse files
committed
1 parent 0b730cf commit 609196f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server/src/main/java/invite/api/FullSearchQueryParser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public static String parse(String query) {
3030
throw new InvalidInputException("Full text query parameter has @NotNull @NotBlank requirement");
3131
}
3232
String parsedQuery = Stream.of(query.split("[ @.,+*-]"))
33+
//MariaDB does not tokenize words shorter than 3
3334
.filter(part -> !(part.isEmpty() || part.length() < 3 || stopWords.contains(part.toLowerCase()) ))
3435
.map(part -> "+" + part)
3536
.collect(Collectors.joining(" "));

0 commit comments

Comments
 (0)