From e9fde5c6b9dcb517ab06dabb6f913fd7943363f9 Mon Sep 17 00:00:00 2001 From: Youri Noel Nelson Date: Sun, 8 Mar 2020 05:07:53 -0400 Subject: [PATCH] feat($plugin-search): improve the native search algorithm (#1557) --- .../@vuepress/plugin-search/SearchBox.vue | 13 +++--- .../__tests__/matchQuery.spec.js | 42 +++++++++++++++++++ .../@vuepress/plugin-search/match-query.js | 42 +++++++++++++++++++ packages/docs/docs/guide/frontmatter.md | 7 ++++ .../docs/docs/theme/default-theme-config.md | 13 +++++- 5 files changed, 107 insertions(+), 10 deletions(-) create mode 100644 packages/@vuepress/plugin-search/__tests__/matchQuery.spec.js create mode 100644 packages/@vuepress/plugin-search/match-query.js diff --git a/packages/@vuepress/plugin-search/SearchBox.vue b/packages/@vuepress/plugin-search/SearchBox.vue index 3e1a2cc0d8..b47f18ec6a 100644 --- a/packages/@vuepress/plugin-search/SearchBox.vue +++ b/packages/@vuepress/plugin-search/SearchBox.vue @@ -45,6 +45,8 @@