mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-03 02:42:53 +02:00
Merge pull request #398 from danawoodman/patch-1
Update docs for usage with ESM / ES6
This commit is contained in:
@@ -447,12 +447,12 @@ There are 3 types of indexes:
|
||||
|
||||
The most of you probably need just one of them according to your scenario.
|
||||
|
||||
### ES6 Modules (Browser):
|
||||
### ESM / ES6 Modules (Browser):
|
||||
|
||||
```js
|
||||
import Index from "./index.js";
|
||||
import Document from "./document.js";
|
||||
import WorkerIndex from "./worker/index.js";
|
||||
import Index from "flexsearch/dist/module";
|
||||
import Worker from "flexsearch/dist/module/worker";
|
||||
import Document from "flexsearch/dist/module/document";
|
||||
|
||||
const index = new Index(options);
|
||||
const document = new Document(options);
|
||||
|
Reference in New Issue
Block a user