mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-03 02:42:53 +02:00
refactor index.js filenames #481
This commit is contained in:
@@ -178,7 +178,7 @@ export default {
|
||||
Create your index by assigning the configuration file from above:
|
||||
|
||||
```js
|
||||
import { Worker as WorkerIndex } from "flexsearch/esm";
|
||||
import { Worker as WorkerIndex } from "flexsearch";
|
||||
const index = await new WorkerIndex(config);
|
||||
// add data to the index
|
||||
// ...
|
||||
@@ -261,7 +261,7 @@ export default {
|
||||
Create your index by assigning the configuration file from above:
|
||||
|
||||
```js
|
||||
import { Document } from "flexsearch/esm";
|
||||
import { Document } from "flexsearch";
|
||||
const document = await new Document(config);
|
||||
// add data to the index
|
||||
// ...
|
||||
|
Reference in New Issue
Block a user