File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 18621862 sortFn = _this$options . sortFn ,
18631863 ignoreFieldNorm = _this$options . ignoreFieldNorm ;
18641864 var results = isString ( query ) ? isString ( this . _docs [ 0 ] ) ? this . _searchStringList ( query ) : this . _searchObjectList ( query ) : this . _searchLogical ( query ) ;
1865- computeScore$1 ( results , this . _keyStore , {
1865+ computeScore$1 ( results , {
18661866 ignoreFieldNorm : ignoreFieldNorm
18671867 } ) ;
18681868
21242124 return Fuse ;
21252125 } ( ) ; // Practical scoring function
21262126
2127- function computeScore$1 ( results , keyStore , _ref8 ) {
2127+ function computeScore$1 ( results , _ref8 ) {
21282128 var _ref8$ignoreFieldNorm = _ref8 . ignoreFieldNorm ,
21292129 ignoreFieldNorm = _ref8$ignoreFieldNorm === void 0 ? Config . ignoreFieldNorm : _ref8$ignoreFieldNorm ;
21302130 results . forEach ( function ( result ) {
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default class Fuse {
8686 : this . _searchObjectList ( query )
8787 : this . _searchLogical ( query )
8888
89- computeScore ( results , this . _keyStore , { ignoreFieldNorm } )
89+ computeScore ( results , { ignoreFieldNorm } )
9090
9191 if ( shouldSort ) {
9292 results . sort ( sortFn )
@@ -287,11 +287,7 @@ export default class Fuse {
287287}
288288
289289// Practical scoring function
290- function computeScore (
291- results ,
292- keyStore ,
293- { ignoreFieldNorm = Config . ignoreFieldNorm }
294- ) {
290+ function computeScore ( results , { ignoreFieldNorm = Config . ignoreFieldNorm } ) {
295291 results . forEach ( ( result ) => {
296292 let totalScore = 1
297293
You can’t perform that action at this time.
0 commit comments