From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 17:27:11 +0000 (+0100) Subject: wip #4804 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f359839781c22145538fba81de9e7e8704f78d97;p=odl.git wip #4804 @0.25 --- diff --git a/resources/js/search.js b/resources/js/search.js index ee3e5da..ea0659e 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -12,6 +12,7 @@ export default () => ({ storeFields: ['id', 'title', 'text', 'type', 'url', 'thumb'], // fields to return with search results searchOptions: { prefix: true, // Allow partial matches + processTerm: (term, _fieldName) => term.length < 3 ? null : term.toLowerCase() }, }, query: '', // The search query