do not prepend asterisks before words in search

An asterisk is a special FTS4 operator when appended to a word but has no
special meaning when prepended.
This commit is contained in:
Alexei Sorokin 2020-11-13 12:50:04 +03:00 committed by Daniel Gultsch
parent b327548c85
commit 501cdd5edf
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class FtsUtils {
} else if (term.contains("*") || term.startsWith("-")) { } else if (term.contains("*") || term.startsWith("-")) {
builder.append(term); builder.append(term);
} else { } else {
builder.append('*').append(term).append('*'); builder.append(term).append('*');
} }
} }
return builder.toString(); return builder.toString();