config: add search web worker
This commit is contained in:
parent
1aa8b7231f
commit
b1de433fb5
|
@ -67,6 +67,8 @@ Source:
|
||||||
var index = new FlexSearch({
|
var index = new FlexSearch({
|
||||||
preset: 'score',
|
preset: 'score',
|
||||||
cache: true,
|
cache: true,
|
||||||
|
async: true,
|
||||||
|
worker: 4,
|
||||||
doc: {
|
doc: {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
field: [
|
field: [
|
||||||
|
|
Loading…
Reference in New Issue