]> _ Git - odl.git/commitdiff
wip #4804 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 17:27:11 +0000 (18:27 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 17:27:11 +0000 (18:27 +0100)
resources/js/search.js

index ee3e5dac92f6107090b0556a125b519acadd360f..ea0659e6a081c48596e4036dd580be565ba232dc 100644 (file)
@@ -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