mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
feat(viz-gallery): add search weight for viz-name (#19581)
This commit is contained in:
parent
1cd002e801
commit
e625c03cd5
@ -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],
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user