Updated posts data to use new collection data

- search results are now broken into separate collections for posts, authors and tags
This commit is contained in:
Rishabh 2022-07-05 17:43:52 +02:00
parent c429b90c11
commit 36aa8d7558

View File

@ -289,8 +289,7 @@ function SearchResultBox() {
/* eslint-disable no-console */ /* eslint-disable no-console */
if (indexComplete && searchValue) { if (indexComplete && searchValue) {
searchResults = searchIndex.search(searchValue); searchResults = searchIndex.search(searchValue);
console.log(searchResults); filteredPosts = searchResults?.posts?.map((d) => {
filteredPosts = searchResults?.map((d) => {
return { return {
id: d?.id, id: d?.id,
excerpt: d?.excerpt, excerpt: d?.excerpt,