Skip to content

Commit

Permalink
fix(theme): full text search doesn't support partial search (close: #77
Browse files Browse the repository at this point in the history
…) (#78)

Using [reverse](https://github.com/nextapps-de/flexsearch#tokenizer-prefix-search) tokenizer, support incrementally index words in both directions
  • Loading branch information
ulivz authored Nov 7, 2022
1 parent 57b0a98 commit 88ba7ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
);
const indexSettings = {
encode: options.encode || "simple",
tokenize: options.tokenize || "forward",
tokenize: options.tokenize || "reverse",
split: options.split || /\W+/,
async: true,
doc: {
Expand Down

0 comments on commit 88ba7ef

Please sign in to comment.