diff --git a/README.md b/README.md
index 55d64d9..b89a6c3 100644
--- a/README.md
+++ b/README.md
@@ -13,20 +13,36 @@ FlexSearch v0.8: [Overview and Migration Guide](doc/0.8.0.md)
-Basic Start •
-API Reference •
+[Basic Start](#load-library) •
+[API Reference](#api-overview) •
Encoder •
Document Search •
Persistent Indexes •
Using Worker •
Tag Search •
Resolver •
-Customization •
Changelog
-## Support this Project
+
+
+## Please Support this Project
+
+FlexSearch has been helping developers around the world build powerful, efficient search functionalities for years. Maintaining and improving the library requires significant time and resources. If you’ve found this project valuable and you're interested in supporting the project, please consider donating. Thanks a lot for your continued support!
@@ -45,15 +61,11 @@ You can help me by making a personal donation to keep this project alive and als
Library | +Memory | +Query: Single | +Query: Multi | +Query: Large | +Query: Not Found | +
---|---|---|---|---|---|
flexsearch | +16 | +50955718 | +11912730 | +13981110 | +51706499 | +
jsii | +2188 | +13847 | +949559 | +1635959 | +3730307 | +
wade | +980 | +60473 | +443214 | +419152 | +1239372 | +
js-search | +237 | +22982 | +383775 | +426609 | +994803 | +
minisearch | +4777 | +30589 | +191657 | +5849 | +304233 | +
orama | +5355 | +29445 | +170231 | +4454 | +225491 | +
elasticlunr | +3073 | +14326 | +48558 | +101206 | +95840 | +
lunr | +2443 | +11527 | +51476 | +88858 | +103386 | +
ufuzzy | +13754 | +2799 | +7788 | +58544 | +9557 | +
bm25 | +33963 | +3903 | +4777 | +12657 | +12471 | +
fuzzysearch | +300147 | +148 | +229 | +455 | +276 | +
fuse | +247107 | +422 | +321 | +337 | +329 | +
Field | -Category | -Description | -
encode | -charset | -The encoder function. Has to return an array of separated words (or an empty string). | -
rtl | -charset | -A boolean property which indicates right-to-left encoding. | -
filter | -language | -Filter are also known as "stopwords", they completely filter out words from being indexed. | -
stemmer | -language | -Stemmer removes word endings and is a kind of "partial normalization". A word ending just matched when the word length is bigger than the matched partial. | -
matcher | -language | -Matcher replaces all occurrences of a given string regardless of its position and is also a kind of "partial normalization". | -
-
-
Encoder: | -LatinExact |
- LatinDefault |
- LatinSimple |
- LatinBalance |
- LatinAdvanced |
- LatinExtra |
- LatinSoundex |
-
---|---|---|---|---|---|---|---|
Index Size | -3.1 Mb | -1.9 Mb | -1.8 Mb | -1.7 Mb | -1.6 Mb | -1.1 Mb | -0.7 Mb | -
Struldbrugs | -✓ | -✓ | -✓ | -✓ | -✓ | -✓ | -✓ | -
struldbrugs | -- | ✓ | -✓ | -✓ | -✓ | -✓ | -✓ | -
strũldbrųĝgs | -- | - | ✓ | -✓ | -✓ | -✓ | -✓ | -
strultbrooks | -- | - | - | ✓ | -✓ | -✓ | -✓ | -
shtruhldbrohkz | -- | - | - | - | ✓ | -✓ | -✓ | -
zdroltbrykz | -- | - | - | - | - | ✓ | -✓ | -
struhlbrogger | -- | - | - | - | - | - | ✓ | -
Encoder: | +LatinExact |
+ LatinDefault |
+ LatinSimple |
+ LatinBalance |
+ LatinAdvanced |
+ LatinExtra |
+ LatinSoundex |
+
---|---|---|---|---|---|---|---|
Index Size | +3.1 Mb | +1.9 Mb | +1.8 Mb | +1.7 Mb | +1.6 Mb | +1.1 Mb | +0.7 Mb | +
Struldbrugs | +✓ | +✓ | +✓ | +✓ | +✓ | +✓ | +✓ | +
struldbrugs | ++ | ✓ | +✓ | +✓ | +✓ | +✓ | +✓ | +
strũldbrųĝgs | ++ | + | ✓ | +✓ | +✓ | +✓ | +✓ | +
strultbrooks | ++ | + | + | ✓ | +✓ | +✓ | +✓ | +
shtruhldbrohkz | ++ | + | + | + | ✓ | +✓ | +✓ | +
zdroltbrykz | ++ | + | + | + | + | ✓ | +✓ | +
struhlbrogger | ++ | + | + | + | + | + | ✓ | +
Field | +Category | +Description | +
encode | +charset | +The encoder function. Has to return an array of separated words (or an empty string). | +
rtl | +charset | +A boolean property which indicates right-to-left encoding. | +
filter | +language | +Filter are also known as "stopwords", they completely filter out words from being indexed. | +
stemmer | +language | +Stemmer removes word endings and is a kind of "partial normalization". A word ending just matched when the word length is bigger than the matched partial. | +
matcher | +language | +Matcher replaces all occurrences of a given string regardless of its position and is also a kind of "partial normalization". | +
+
+
Option | +Values | +Description | +Default | +
preset | +
+ "memory" + "performance" + "match" + "score" + "default" + |
+
+ The configuration profile as a shortcut or as a base for your custom settings. + |
+ "default" | +
tokenize | +
+ "strict", "exact" + "forward" + "reverse", "bidirectional + "full" + |
+
+ The indexing mode (tokenizer). Choose one of the built-ins or pass a custom tokenizer function. + |
+ "strict" | +
cache | +
+ Boolean + Number + |
+ Enable/Disable and/or set capacity of cached entries. When passing a number as a limit the cache automatically balance stored entries related to their popularity. Note: When just using "true" the cache has no limits and growth unbounded. |
+ false | +
resolution | ++ Number + | +Sets the scoring resolution (default: 9). | +9 | +
context | +
+ Boolean + Context Options + |
+ Enable/Disable contextual indexing. When passing "true" as value it will take the default values for the context. | +false | +
optimize | ++ Boolean + | +When enabled it uses a memory-optimized stack flow for the index. | +true | +
boost | ++ function(arr, str, int) => float + | +A custom boost function used when indexing contents to the index. The function has this signature: Function(words[], term, index) => Float . It has 3 parameters where you get an array of all words, the current term and the current index where the term is placed in the word array. You can apply your own calculation e.g. the occurrences of a term and return this factor (<1 means relevance is lowered, >1 means relevance is increased).Note: this feature is currently limited by using the tokenizer "strict" only. |
+ null | +
+ Language-specific Options and Encoding: + | +|||
charset |
+
+ Charset Payload + String (key) + |
+ + Provide a custom charset payload or pass one of the keys of built-in charsets. + | +"latin" | +
language |
+
+ Language Payload + String (key) + |
+ + Provide a custom language payload or pass in language shorthand flag (ISO-3166) of built-in languages. + | +null | +
encode |
+
+ false + "default" + "simple" + "balance" + "advanced" + "extra" + function(str) => [words] + |
+ The encoding type. Choose one of the built-ins or pass a custom encoding function. |
+ "default" | +
stemmer |
+
+ false + String + Function + |
+ + | false | +
filter |
+
+ false + String + Function + |
+ + | false | +
matcher |
+
+ false + String + Function + |
+ + | false | +
+ Additional Options for Document Indexes: + | +|||
worker |
+ + Boolean + | +Enable/Disable and set count of running worker threads. | +false | +
document |
+ Document Descriptor | ++ Includes definitions for the document index and storage. + | ++ |
Option | +Values | +Description | +Default | +
resolution | ++ Number + | +Sets the scoring resolution for the context (default: 1). | +1 | +
depth |
+
+ false + Number + |
+ Enable/Disable contextual indexing and also sets contextual distance of relevance. Depth is the maximum number of words/tokens away a term to be considered as relevant. | +1 | +
bidirectional | ++ Boolean + | +Sets bidirectional search result. If enabled and the source text contains "red hat", it will be found for queries "red hat" and "hat red". | +true | +
Option | +Values | +Description | +Default | +
id |
+ String | ++ | "id"" | +
tag |
+ false String |
+ + | "tag" | +
index |
+ String Array<String> Array<Object> |
+ + | + |
store |
+ Boolean String Array<String> |
+ + | false | +
Option | +Values | +Description | +Default | +
split |
+
+ false + RegExp + String + |
+
+ The rule to split words when using non-custom tokenizer (built-ins e.g. "forward"). Use a string/char or use a regular expression (default: /\W+/ ).+ |
+ /[\W_]+/ |
+
rtl |
+ + Boolean + | +Enables Right-To-Left encoding. | +false | +
encode |
+ + function(str) => [words] + | +The custom encoding function. | +/lang/latin/default.js | +
stemmer |
+
+ false + String + Function + |
+ Disable or pass in language shorthand flag (ISO-3166) or a custom object. + | |
filter |
+
+ false + String + Function + |
+ Disable or pass in language shorthand flag (ISO-3166) or a custom array. | +|
matcher |
+
+ false + String + Function + |
+ Disable or pass in language shorthand flag (ISO-3166) or a custom array. | +
Option | +Values | +Description | +Default | +
limit | +number | +Sets the limit of results. | +100 | +
offset | +number | +Apply offset (skip items). | +0 | +
suggest | +Boolean | +Enables suggestions in results. | +false | +
Option | +Values | +Description | +Default | +
index | +String Array<String> Array<Object> |
+ Sets the document fields which should be searched. When no field is set, all fields will be searched. Custom options per field are also supported. | ++ |
tag | +String Array<String> |
+ Sets the document fields which should be searched. When no field is set, all fields will be searched. Custom options per field are also supported. | +false | +
enrich | +Boolean | +Enrich IDs from the results with the corresponding documents. | +false | +
bool | +"and" "or" |
+ Sets the used logical operator when searching through multiple fields or tags. | +"or" | +