Skip to content

Commit

Permalink
feat(viz-gallery): add search weight for viz-name (apache#19581)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ authored and philipher29 committed Jun 9, 2022
1 parent 88c88c9 commit 003f5af
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,17 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
new Fuse(chartMetadata, {
ignoreLocation: true,
threshold: 0.3,
keys: ['value.name', 'value.tags', 'value.description'],
keys: [
{
name: 'value.name',
weight: 4,
},
{
name: 'value.tags',
weight: 2,
},
'value.description',
],
}),
[chartMetadata],
);
Expand Down

0 comments on commit 003f5af

Please sign in to comment.