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:
@@ -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
|
||||
});
|
||||
|
Reference in New Issue
Block a user