We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b2a0c1 commit ebf83cfCopy full SHA for ebf83cf
src/utils/index.ts
@@ -21,6 +21,28 @@ export async function searchAlgolia(params: SearchAlgoliaParamsType) {
21
{
22
indexName: params.indexName,
23
query: params.query,
24
+ attributesToRetrieve: [
25
+ 'hierarchy.lvl0',
26
+ 'hierarchy.lvl1',
27
+ 'hierarchy.lvl2',
28
+ 'hierarchy.lvl3',
29
+ 'hierarchy.lvl4',
30
+ 'hierarchy.lvl5',
31
+ 'hierarchy.lvl6',
32
+ 'content',
33
+ 'url',
34
+ ],
35
+ attributesToSnippet: [
36
+ 'hierarchy.lvl1:10',
37
+ 'hierarchy.lvl2:10',
38
+ 'hierarchy.lvl3:10',
39
+ 'hierarchy.lvl4:10',
40
+ 'hierarchy.lvl5:10',
41
+ 'hierarchy.lvl6:10',
42
+ 'content:10',
43
44
+ snippetEllipsisText: '…',
45
+ hitsPerPage: 2,
46
},
47
],
48
})) as { results: SearchResponse<DocSearchHitType>[] }
0 commit comments