From c37605cf7d592be4c75a63ad7c5a1c0d229af94d Mon Sep 17 00:00:00 2001 From: Thomas Wilkerling Date: Mon, 14 Apr 2025 10:07:11 +0200 Subject: [PATCH] fix document result highlighting when using "pluck" --- README.md | 74 +- demo/autocomplete.html | 63 +- dist/flexsearch.bundle.debug.js | 1228 ++++++++++++----------- dist/flexsearch.bundle.min.js | 156 +-- dist/flexsearch.bundle.module.debug.js | 1228 ++++++++++++----------- dist/flexsearch.bundle.module.min.js | 156 +-- dist/flexsearch.compact.debug.js | 634 ++++++------ dist/flexsearch.compact.min.js | 104 +- dist/flexsearch.compact.module.debug.js | 634 ++++++------ dist/flexsearch.compact.module.min.js | 106 +- dist/flexsearch.es5.debug.js | 1006 ++++++++++--------- dist/flexsearch.es5.min.js | 190 ++-- dist/flexsearch.light.debug.js | 2 +- dist/flexsearch.light.min.js | 2 +- dist/flexsearch.light.module.debug.js | 2 +- dist/flexsearch.light.module.min.js | 2 +- dist/module-debug/document/search.js | 43 +- dist/module-min/document/search.js | 2 +- dist/module/document/search.js | 43 +- package-lock.json | 4 +- package.json | 2 +- src/document/search.js | 46 +- 22 files changed, 2918 insertions(+), 2809 deletions(-) diff --git a/README.md b/README.md index 3915817..5f9e0e9 100644 --- a/README.md +++ b/README.md @@ -300,12 +300,6 @@ The **_dist_** folder is located in: `node_modules/flexsearch/dist/` File CDN - - flexsearch.bundle.debug.js - Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.bundle.debug.js - - flexsearch.bundle.min.js Download @@ -313,9 +307,9 @@ The **_dist_** folder is located in: `node_modules/flexsearch/dist/` - flexsearch.bundle.module.debug.js - Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.bundle.module.debug.js + flexsearch.bundle.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.bundle.debug.js @@ -325,33 +319,45 @@ The **_dist_** folder is located in: `node_modules/flexsearch/dist/` - flexsearch.es5.debug.js - Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.es5.debug.js + flexsearch.bundle.module.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.bundle.module.debug.js - flexsearch.es5.min.js - Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.es5.min.js + flexsearch.compact.min.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.compact.min.js - flexsearch.light.debug.js - Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.light.debug.js + flexsearch.compact.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.compact.debug.js + + + + flexsearch.compact.module.min.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.compact.module.min.js + + + + flexsearch.compact.module.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.compact.module.debug.js flexsearch.light.min.js Download https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.light.min.js - + **** - flexsearch.light.module.debug.js - Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.light.module.debug.js + flexsearch.light.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.light.debug.js @@ -360,22 +366,40 @@ The **_dist_** folder is located in: `node_modules/flexsearch/dist/` https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.light.module.min.js + + flexsearch.light.module.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.light.module.debug.js + + + + flexsearch.es5.min.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.es5.min.js + + + + flexsearch.es5.debug.js + Download + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/flexsearch.es5.debug.js + + Javascript Modules (ESM) Download - https://github.com/nextapps-de/flexsearch/tree/0.8.1/dist/module + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/module/ Javascript Modules Minified (ESM) Download - https://github.com/nextapps-de/flexsearch/tree/0.8.1/dist/module-min + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/module-min/ Javascript Modules Debug (ESM) Download - https://github.com/nextapps-de/flexsearch/tree/0.8.1/dist/module-debug + https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.1/dist/module-debug/ diff --git a/demo/autocomplete.html b/demo/autocomplete.html index e51d698..dc104db 100644 --- a/demo/autocomplete.html +++ b/demo/autocomplete.html @@ -40,7 +40,7 @@ } #trigger-prev, #trigger-next{ - pointer-events: none + z-index: -1; } input{ padding:7px 5px; @@ -103,7 +103,7 @@