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 590d73e commit 79d3eb4Copy full SHA for 79d3eb4
api/resolvers/search.js
@@ -510,8 +510,8 @@ export default {
510
item.searchTitle = e.highlight?.title?.[0] || e.highlight?.['title.exact']?.[0] || item.title
511
512
// prefer the exact highlight for text
513
- const searchTextHighlight = [...(e.highlight?.['text.exact'] || []), ...(e.highlight?.text || [])]
514
- item.searchText = searchTextHighlight?.slice(0, 5)?.join(' ... ')
+ const searchTextHighlight = e.highlight?.['text.exact'] || e.highlight?.text || []
+ item.searchText = searchTextHighlight?.join(' ... ')
515
516
return item
517
})
0 commit comments