1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-29 16:50:13 +02:00

update readme part 2 of 2

This commit is contained in:
Thomas Wilkerling
2025-03-30 16:49:53 +02:00
parent b75fff8937
commit 2ef17eacaf
8 changed files with 395 additions and 363 deletions

View File

@@ -74,8 +74,8 @@ await index.commit();
Alternatively mount a store by index creation:
```js
const index = new FlexSearchIndex({
db: new Storage("my-store")
const index = new Index({
db: new IndexedDB("my-store")
});
// await for the db response before access the first time
@@ -94,7 +94,7 @@ Auto-Commit is enabled by default and will process changes asynchronously in bat
You can fully disable the auto-commit feature and perform them manually:
```js
const index = new FlexSearchIndex({
const index = new Index({
db: new Storage("my-store"),
commit: false
});