mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-09 05:30:44 +02:00
switch to jsdelivr
This commit is contained in:
@@ -10,19 +10,18 @@
|
||||
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
|
||||
<p style="color: #f00">This test is using query cache and is outside the competition! It is just there for completion.</p>
|
||||
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
|
||||
<script src="https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/flexsearch.light.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/flexsearch.light.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/lang/en.min.js"></script>
|
||||
<script type="module">
|
||||
|
||||
import EnglishPreset from "https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/module-min/lang/en.js";
|
||||
import { suite } from "../../bench.js";
|
||||
|
||||
let lib;
|
||||
|
||||
suite["flexsearch-0.8.0-cache"] = {
|
||||
|
||||
init: function(){
|
||||
lib = new FlexSearch.Index({
|
||||
encoder: EnglishPreset,
|
||||
encoder: FlexSearch.Language["en"],
|
||||
tokenize: "strict",
|
||||
resolution: 1,
|
||||
cache: true,
|
@@ -8,7 +8,7 @@
|
||||
<h2>Benchmark: flexsearch-0.8.0-match</h2><hr/>
|
||||
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
|
||||
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
|
||||
<script src="https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/flexsearch.compact.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@0.8.0/dist/flexsearch.compact.min.js"></script>
|
||||
<script type="module">
|
||||
|
||||
import { suite } from "../../bench.js";
|
||||
@@ -28,7 +28,7 @@
|
||||
}
|
||||
},
|
||||
query: function(query){
|
||||
return lib.search(query, { suggest: true });
|
||||
return lib.search(query, 9999, { suggest: true });
|
||||
}
|
||||
};
|
||||
|
@@ -9,12 +9,11 @@
|
||||
<h2>Benchmark: flexsearch-0.8.0-soundex</h2><hr/>
|
||||
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
|
||||
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
|
||||
<script src="https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/flexsearch.compact.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/flexsearch.compact.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/lang/en.min.js"></script>
|
||||
<script type="module">
|
||||
|
||||
import EnglishPreset from "https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/module-min/lang/en.js";
|
||||
import { suite } from "../../bench.js";
|
||||
|
||||
let lib;
|
||||
|
||||
suite["flexsearch-0.8.0-soundex"] = {
|
||||
@@ -23,7 +22,7 @@
|
||||
lib = new FlexSearch.Index({
|
||||
encoder: new FlexSearch.Encoder(
|
||||
FlexSearch.Charset.LatinSoundex,
|
||||
EnglishPreset
|
||||
FlexSearch.Language["en"]
|
||||
),
|
||||
tokenize: "strict",
|
||||
resolution: 1,
|
@@ -9,20 +9,21 @@
|
||||
<h2>Benchmark: flexsearch-0.8.0</h2><hr/>
|
||||
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
|
||||
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
|
||||
<script src="https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/flexsearch.light.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/flexsearch.light.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/dist/lang/en.min.js"></script>
|
||||
<script type="module">
|
||||
|
||||
import EnglishPreset from "https://rawcdn.githack.com/nextapps-de/flexsearch/0.8.0/dist/module-min/lang/en.js";
|
||||
import { suite } from "../../bench.js";
|
||||
|
||||
let lib;
|
||||
|
||||
suite["flexsearch-0.8.0"] = {
|
||||
|
||||
init: function(){
|
||||
lib = new FlexSearch.Index({
|
||||
encoder: EnglishPreset,
|
||||
encoder: FlexSearch.Language["en"],
|
||||
tokenize: "strict",
|
||||
// just when using context search a resolution of 1
|
||||
// will still return relevant results
|
||||
resolution: 1,
|
||||
cache: false,
|
||||
context: {
|
Reference in New Issue
Block a user