Closed lukaw3d closed 2 years ago
Flexsearch's split defaults to /[\W_]+/, not " ": https://github.com/nextapps-de/flexsearch#charset-options
/[\W_]+/
" "
Before:
configuration to keep this behaviour:
splitHighlightedWords: ' ', /*noExtraSpaceAfterHtmlTag: false, // default */
After:
this is new default
/*splitHighlightedWords: null, // default */ /*noExtraSpaceAfterHtmlTag: false, // default */
After (without spaces):
I didn't make this default because I'm not sure if it concatenates words in any use case. But it works best
/*splitHighlightedWords: null, // default */ noExtraSpaceAfterHtmlTag: true,
Hey, @lukaw3d this branch is conflicted, could you please resolve conflicts.
@z3by :+1: Rebased
@z3by would you mind making a release with this?
Flexsearch's split defaults to
/[\W_]+/
, not" "
: https://github.com/nextapps-de/flexsearch#charset-optionsBefore:
configuration to keep this behaviour:
After:
this is new default
After (without spaces):
I didn't make this default because I'm not sure if it concatenates words in any use case. But it works best