Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flexsearch

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexsearch - npm Package Compare versions

Comparing version 0.2.44 to 0.2.45

2

package.json
{
"name": "flexsearch",
"version": "0.2.44",
"version": "0.2.45",
"description": "Next-Generation full text search library with zero dependencies.",

@@ -5,0 +5,0 @@ "homepage": "https://nextapps-de.github.io/xone/",

@@ -0,1 +1,2 @@

<p></p>
<p align="center">

@@ -465,3 +466,3 @@ <br>

Create context-enabled index and also set the limit of relevance (depth):
Create index and just set the limit of relevance ("depth"):
```js

@@ -476,5 +477,16 @@ var index = new FlexSearch({

#### Enable Auto-Balanced Cache
Create index and just set a limit of cache entries:
```js
var index = new FlexSearch({
profile: "score",
cache: 10000
});
```
#### Use WebWorker (Browser only)
Create worker-enabled index and also set the count of parallel threads:
Create index and just set the count of parallel threads:
```js

@@ -586,3 +598,3 @@ var index = new FlexSearch({

</td>
<td>Enable/Disable and/or set capacity of cached entries.<br><br>When passing a number as a limit the cache automatically balance stored entries related to their popularity.<br><br>Note: When just using "true" the cache has no limits and is actually 5 times faster (the balancer should not run).</td>
<td>Enable/Disable and/or set capacity of cached entries.<br><br>When passing a number as a limit the <b>cache automatically balance stored entries related to their popularity</b>.<br><br>Note: When just using "true" the cache has no limits and is actually 2-3 times faster (because the balancer do not have to run).</td>
</tr>

@@ -612,5 +624,5 @@ <tr></tr>

false<br>
{number}
{number:0-9}
</td>
<td>Enable/Disable <a href="#contextual">contextual indexing</a> and also sets relevance depth (experimental).</td>
<td>Enable/Disable <a href="#contextual">contextual indexing</a> and also sets contextual distance of relevance.</td>
</tr>

@@ -622,5 +634,5 @@ <tr></tr>

false<br>
{number}
{number:0-9}
</td>
<td>Enable/Disable the threshold of minimum relevance results should have.<br><br>Note: You can take a lower threshold for indexing and pass a higher value when calling .search(), but not other turn around.</td>
<td>Enable/Disable the threshold of minimum relevance all results should have.<br><br>Note: It is also possible to set a lower threshold for indexing and pass a higher value when calling <i>index.search(options)</i>.</td>
</tr>

@@ -962,5 +974,3 @@ <tr></tr>

mode: "strict",
threshold: 7,
stemmer: true,
filter: true
threshold: 7
}

@@ -967,0 +977,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc