1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-03 10:53:41 +02:00

improve scoring calculation

This commit is contained in:
Thomas Wilkerling
2021-06-02 19:16:28 +02:00
parent d1491da259
commit 0fa9bcb95d
8 changed files with 334 additions and 309 deletions

View File

@@ -165,7 +165,7 @@ var index = new Index({
tokenize: "strict",
resolution: 9,
minlength: 3,
optimize: "memory",
optimize: true,
fastupdate: true,
cache: 100,
context: {
@@ -183,7 +183,7 @@ A full configuration example for a document based index:
```js
const index = new Document({
tokenize: "forward",
optimize: "memory",
optimize: true,
resolution: 9,
cache: 100,
worker: true,
@@ -196,12 +196,12 @@ const index = new Document({
index: [{
field: "title",
tokenize: "forward",
optimize: "memory",
optimize: true,
resolution: 9
},{
field: "content",
tokenize: "strict",
optimize: "memory",
optimize: true,
resolution: 9,
minlength: 3,
context: {
@@ -443,12 +443,12 @@ const index = new Document({
index: [{
field: "title",
tokenize: "forward",
optimize: "memory",
optimize: true,
resolution: 9
},{
field: "content",
tokenize: "strict",
optimize: "memory",
optimize: true,
resolution: 9,
minlength: 3,
context: {
@@ -464,7 +464,7 @@ Field options gets inherited when also global options was passed, e.g.:
```js
const index = new Document({
tokenize: "strict",
optimize: "memory",
optimize: true,
resolution: 9,
document: {
key: "id",
@@ -1522,7 +1522,7 @@ import { encode } from "./lang/latin/extra.js";
index = new Index({
encode: encode,
tokenize: "strict",
optimize: "memory",
optimize: true,
resolution: 1,
minlength: 3,
fastupdate: false,
@@ -1616,7 +1616,7 @@ FlexSearch provides you many parameters you can use to adjust the optimal balanc
</tr>
<tr></tr>
<tr>
<td>optimize: "memory"</td>
<td>optimize: true</td>
<td>-7</td>
<td>-1</td>
<td>0</td>