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

View file

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