Skip to content

Commit

Permalink
fix #231
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Jun 24, 2021
1 parent 08c5baf commit 19bdd2f
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 51 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ The basic idea of this concept is to limit relevance by its context instead of c
This way contextual search also <a href="https://nextapps-de.github.io/flexsearch/bench/match.html" target="_blank">improves the results of relevance-based queries</a> on a large amount of text data.

<p align="center">
<img src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/doc/contextual-index.svg?v=4">
<img src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/doc/contextual-index.svg?v=4" width="100%">
</p>

<a name="installation"></a>
Expand Down Expand Up @@ -1116,8 +1116,8 @@ Create a new index and extend a preset with custom options:
```js
var index = new FlexSearch({
preset: "memory",
resolution: 5,
tokenize: "forward"
tokenize: "forward",
resolution: 5
});
```

Expand Down Expand Up @@ -2787,9 +2787,9 @@ index = new Index({
```

<a name="consumption"></a>
### Memory Benchmark (Ranking)
### Memory Consumption

The book "Gulliver's Travels" (Swift Jonathan 1726) was used for this test.
The book "Gulliver's Travels" (Swift Jonathan 1726) was completely indexed for this test:

<br>
<img src="https://cdn.jsdelivr.net/gh/nextapps-de/flexsearch@master/doc/memory-comparison.svg?v=2">
Expand Down
4 changes: 2 additions & 2 deletions dist/flexsearch.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/flexsearch.compact.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions dist/flexsearch.debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* FlexSearch.js v0.7.1 (Debug)
* FlexSearch.js v0.7.11 (Debug)
* Copyright 2018-2021 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
Expand Down Expand Up @@ -666,20 +666,19 @@ function U(a, b, c, d, e) {
}
}
function V(a, b, c, d, e, f, g, h) {
a = a[g];
if (d === b.length - 1) {
if (a.constructor === Array) {
if (c[d]) {
for (b = 0; b < a.length; b++) {
e.add(f, a[b], !0, !0);
if (a = a[g]) {
if (d === b.length - 1) {
if (a.constructor === Array) {
if (c[d]) {
for (b = 0; b < a.length; b++) {
e.add(f, a[b], !0, !0);
}
return;
}
return;
a = a.join(" ");
}
a = a.join(" ");
}
e.add(f, a, h, !0);
} else {
if (a) {
e.add(f, a, h, !0);
} else {
if (a.constructor === Array) {
for (g = 0; g < a.length; g++) {
V(a, b, c, d, e, f, g, h);
Expand Down
4 changes: 2 additions & 2 deletions dist/flexsearch.es5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/flexsearch.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 19bdd2f

Please sign in to comment.