diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-09-24 12:26:18 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-09-26 08:29:43 +0200 |
commit | 833a936a4416be31136729594329311cabb24f7f (patch) | |
tree | 8ca46d806d400a731c76958ba7808aac1fa7d744 /Package_html_static.mk | |
parent | 39f3c4dc011dd2cffbbd9b6eb9cea655e1e09772 (diff) |
Switch from Fuzzysort to FlexSearch
FlexSearch has the best performance of JS search libs at the moment.
It doesn't have fuzzy search yet, but maybe our users don't even
want the feature. RFE is https://github.com/nextapps-de/flexsearch/issues/118
flexsearch.debug.js is used because it is the only unminified version and
we can't use minified files in the source code as they are equivalent to
binary files (close source). There doesn't seem to be anything that would
make it a bad idea to use the debug version in production, only a couple
of edge case checks that print warnings to console.
This commit also makes automatic filtering work when the input field already
has a string upon page load (functions were called in the wrong order).
Change-Id: I5055f7f7f99cad92dfa3a544e5314eb85a1faced
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122566
Tested-by: Jenkins
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'Package_html_static.mk')
-rw-r--r-- | Package_html_static.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Package_html_static.mk b/Package_html_static.mk index 249783c220..f4cfd2c74a 100644 --- a/Package_html_static.mk +++ b/Package_html_static.mk @@ -19,7 +19,7 @@ $(eval $(call gb_Package_add_file,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOL $(eval $(call gb_Package_add_files,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOLDER)$(if $(HELP_ONLINE),/$(PRODUCTVERSION)),\ a11y-toggle.js \ default.css \ - fuzzysort.js \ + flexsearch.debug.js \ help.js \ help2.js \ normalize.css \ |