Skip to content

Commit b713c05

Browse files
authored
Merge pull request #3254 from FlowFuse/extra-context-for-search-results
Display more content for algolia search results
2 parents 4991c98 + 7747fa0 commit b713c05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/_includes/layouts/common-js.njk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
indexName : 'netlify_00f8cf60-997f-4c4d-9427-a97924358648_live_all',
5757
params : {
5858
query,
59-
hitsPerPage
59+
hitsPerPage,
60+
attributesToSnippet: ['content:50']
6061
},
6162
attributesToHighlight: '*',
6263
filters: scope.length === 0 ? undefined : `category:${scope}`

0 commit comments

Comments
 (0)