summaryrefslogtreecommitdiff
path: root/help3xsl/xap_templ_query.xsl
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-09-24 12:26:18 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-09-26 08:29:43 +0200
commit833a936a4416be31136729594329311cabb24f7f (patch)
tree8ca46d806d400a731c76958ba7808aac1fa7d744 /help3xsl/xap_templ_query.xsl
parent39f3c4dc011dd2cffbbd9b6eb9cea655e1e09772 (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 'help3xsl/xap_templ_query.xsl')
-rw-r--r--help3xsl/xap_templ_query.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/help3xsl/xap_templ_query.xsl b/help3xsl/xap_templ_query.xsl
index a606d2fc2a..4189aadfdc 100644
--- a/help3xsl/xap_templ_query.xsl
+++ b/help3xsl/xap_templ_query.xsl
@@ -82,7 +82,7 @@ $def{SPAGE,<input type=submit name="[" value="$1" disabled=disabled>}
<script type="text/javascript" src="polyfills.js"></script>
<script type="text/javascript" src="languages.js"></script>
<script type="text/javascript" src="]]><xsl:value-of select="$lang"/><![CDATA[/langnames.js"></script>
-<script type="text/javascript" src="fuzzysort.js"></script>
+<script type="text/javascript" src="flexsearch.debug.js"></script>
<script type="text/javascript" src="prism.js"></script>
<script type="text/javascript" src="help2.js" defer=""></script>
<script type="text/javascript" src="a11y-toggle.js" defer=""></script>