From a0a6f8092b236934647c92429f18b0c67c09abd0 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 23 Feb 2022 16:02:49 +0100 Subject: [PATCH] wip #5122 --- resources/js/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/search.js b/resources/js/search.js index f562d5e..32a14b2 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -9,7 +9,7 @@ export default () => ({ miniSearch: {}, // Holds the MiniSearch instance setup: { // MiniSearch options: https://lucaong.github.io/minisearch/#search-options fields: ['title', 'text', 'keywords'], // fields to index for full-text search - storeFields: ['id', 'title', 'text', 'type', 'url', 'thumb'], // fields to return with search results + storeFields: ['id', 'displayedTitle', '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() @@ -46,7 +46,7 @@ export default () => ({ attributes = '@click.prevent="openPDF($el.attributes.href.value); closeSearch();"'; } - return `${result.title}`; + return `${result.displayedTitle}`; }, get results() { -- 2.39.5