Set the default batchSize to 1000 for all search engines.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2022-04-29 17:26:02 +02:00
parent 0950038651
commit 71d3432710
5 changed files with 11 additions and 4 deletions
@@ -27,7 +27,7 @@ export class LunrSearchEngineIndexer extends BatchSearchEngineIndexer {
private docStore: Record<string, IndexableDocument> = {};
constructor() {
super({ batchSize: 100 });
super({ batchSize: 1000 });
this.builder = new lunr.Builder();
this.builder.pipeline.add(lunr.trimmer, lunr.stopWordFilter, lunr.stemmer);