prefix: true, // Allow partial matches
processTerm: (term, _fieldName) => term.length < 3 ? null : term.toLowerCase()
},
- },
- query: '', // The search query
+ }, query: '', // The search query
medialibrary: '', // Holds URL of the media library that is passed in from the component
async init() {
// Delay miniSearch initialisation so there's less chance of animations stuttering during page loads
setTimeout(() => {
- this.miniSearch = new MiniSearch(this.setup);
+ window.minisearch = this.miniSearch = new MiniSearch(this.setup);
this.miniSearch.addAllAsync(minisearchodl);
}, 4000);