From 51960378745747884760ef7a9515c6d1e80fc3fe Mon Sep 17 00:00:00 2001 From: Thomas Wilkerling Date: Fri, 22 Feb 2019 01:04:22 +0100 Subject: [PATCH] Add fuzzysearch to comparison --- README.md | 6 +++--- flexsearch.js | 6 +++--- test/benchmark-short.html | 18 ++++++++++++++++- test/benchmark.html | 22 +++++++++++++++++--- test/matching-presets.html | 10 +++++----- test/matching.html | 41 +++++++++++++++++++++++++++++--------- 6 files changed, 79 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 07df007..dc52f71 100644 --- a/README.md +++ b/README.md @@ -45,19 +45,19 @@ Get Latest (Stable Release): flexsearch.min.js Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/flexsearch.min.js + https://rawcdn.githack.com/nextapps-de/flexsearch/8a4c8f849d8f78deed08e2d78c7400c27297deb6/dist/flexsearch.min.js flexsearch.light.js Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/flexsearch.light.js + https://rawcdn.githack.com/nextapps-de/flexsearch/8a4c8f849d8f78deed08e2d78c7400c27297deb6/dist/flexsearch.light.js flexsearch.compact.js Download - https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/flexsearch.compact.js + https://rawcdn.githack.com/nextapps-de/flexsearch/8a4c8f849d8f78deed08e2d78c7400c27297deb6/dist/flexsearch.compact.js diff --git a/flexsearch.js b/flexsearch.js index bca7279..5c36c8e 100644 --- a/flexsearch.js +++ b/flexsearch.js @@ -3967,9 +3967,9 @@ "var SUPPORT_INFO = " + (SUPPORT_INFO ? "true" : "false") + ";" + "var SUPPORT_DOCUMENT = " + (SUPPORT_DOCUMENT ? "true" : "false") + ";" + "var SUPPORT_WHERE = " + (SUPPORT_WHERE ? "true" : "false") + ";" + - "var SUPPORT_WHERE = " + (SUPPORT_PAGINATION ? "true" : "false") + ";" + - "var SUPPORT_WHERE = " + (SUPPORT_OPERATOR ? "true" : "false") + ";" + - "var SUPPORT_WHERE = " + (SUPPORT_CALLBACK ? "true" : "false") + ";" + + "var SUPPORT_PAGINATION = " + (SUPPORT_PAGINATION ? "true" : "false") + ";" + + "var SUPPORT_OPERATOR = " + (SUPPORT_OPERATOR ? "true" : "false") + ";" + + "var SUPPORT_CALLBACK = " + (SUPPORT_CALLBACK ? "true" : "false") + ";" + "var SUPPORT_WORKER = true;" ) + "(" + _worker.toString() + ")()" diff --git a/test/benchmark-short.html b/test/benchmark-short.html index 165ab70..24257a7 100644 --- a/test/benchmark-short.html +++ b/test/benchmark-short.html @@ -31,7 +31,8 @@

Indexed Text: Movie Titles

- + + - + + @@ -25,9 +25,9 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

default memory speed - matching - scoring - balanced + match + score + balance fast diff --git a/test/matching.html b/test/matching.html index cad9b2b..20bea00 100644 --- a/test/matching.html +++ b/test/matching.html @@ -29,6 +29,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

jssearch jsii bm25 + fuzzysearch @@ -41,6 +42,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -53,6 +55,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -65,6 +68,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -77,6 +81,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -89,6 +94,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -101,6 +107,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -113,6 +120,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -125,6 +133,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -137,6 +146,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -149,6 +159,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -161,6 +172,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -173,6 +185,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -191,6 +204,7 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

wait ... wait ... wait ... + wait ... @@ -210,7 +224,8 @@

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

- + +