Skip to content

Commit

Permalink
fix: add stories names to search index
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jun 24, 2020
1 parent de929c3 commit 923c546
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/blocks/src/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const Search = () => {
this.field('description');
this.field('body');
this.field('author');
this.field('stories');
this.field('component');
storeProvider.pages.forEach(page => {
this.add({
Expand All @@ -42,6 +43,9 @@ export const Search = () => {
description: page.description,
body: page.source,
author: page.author,
stories: page.stories
?.map(story => story.split('-').join(' '))
.join(' '),
component: Object.keys(page.components).join(' '),
});
});
Expand Down

0 comments on commit 923c546

Please sign in to comment.