]> _ Git - odl.git/commitdiff
wip #5120
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Feb 2022 15:57:53 +0000 (16:57 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Feb 2022 15:57:53 +0000 (16:57 +0100)
resources/js/search.js

index c0285e285bfb3624d87c3aacc1f437c67f256105..ffc4bad6f95baa87b10068cfbb6a446e9ff1c170 100644 (file)
@@ -11,8 +11,8 @@ export default () => ({
         fields: ['title', 'text', 'keywords'], // fields to index for full-text search
         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()
+            prefix: false, // Allow partial matches
+            //processTerm: (term, _fieldName) => term.length < 3 ? null : term.toLowerCase()
         },
     }, querystring: '', // The search query
     query: '', // The search query