diff --git a/app/lib/search/flutter_sdk_mem_index.dart b/app/lib/search/flutter_sdk_mem_index.dart index 2683260f9c..36b1f84732 100644 --- a/app/lib/search/flutter_sdk_mem_index.dart +++ b/app/lib/search/flutter_sdk_mem_index.dart @@ -33,8 +33,8 @@ const _allowedLibraries = { }; const _flutterApiPageDirWeights = { - 'cupertino/CupertinoIcons': 0.7, - 'material/Icons': 0.7, + 'cupertino/CupertinoIcons': 0.25, + 'material/Icons': 0.25, }; final _logger = Logger('search.flutter_sdk_mem_index'); diff --git a/app/lib/search/sdk_mem_index.dart b/app/lib/search/sdk_mem_index.dart index 0addef5049..0012c0e9e5 100644 --- a/app/lib/search/sdk_mem_index.dart +++ b/app/lib/search/sdk_mem_index.dart @@ -117,7 +117,10 @@ class SdkMemIndex { }, ); - hits.add(_Hit(library, weightedResults)); + final hit = _Hit(library, weightedResults); + if (hit.score > 0.25) { + hits.add(hit); + } } if (hits.isEmpty) return [];