frecency
Advanced tools
Comparing version 1.3.0 to 1.3.1
## Release History | ||
* 1.3.1 fallback on other score computation when an entry is too old #11 | ||
* 1.3.0 make weights configurable #12 | ||
@@ -4,0 +6,0 @@ |
@@ -469,3 +469,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
result._frecencyScore = _this._exactQueryMatchWeight * _this._calculateScore(_selection.selectedAt, _selection.timesSelected, now); | ||
return; | ||
if (result._frecencyScore > 0) return; | ||
} | ||
@@ -495,3 +495,3 @@ } | ||
result._frecencyScore = _this._subQueryMatchWeight * _this._calculateScore(_selection2.selectedAt, _selection2.timesSelected, now); | ||
return; | ||
if (result._frecencyScore > 0) return; | ||
} | ||
@@ -498,0 +498,0 @@ } |
@@ -460,3 +460,3 @@ 'use strict'; | ||
result._frecencyScore = _this._exactQueryMatchWeight * _this._calculateScore(_selection.selectedAt, _selection.timesSelected, now); | ||
return; | ||
if (result._frecencyScore > 0) return; | ||
} | ||
@@ -486,3 +486,3 @@ } | ||
result._frecencyScore = _this._subQueryMatchWeight * _this._calculateScore(_selection2.selectedAt, _selection2.timesSelected, now); | ||
return; | ||
if (result._frecencyScore > 0) return; | ||
} | ||
@@ -489,0 +489,0 @@ } |
{ | ||
"name": "frecency", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Frecency sorting for search results.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -304,3 +304,3 @@ // @flow | ||
selection.timesSelected, now); | ||
return; | ||
if (result._frecencyScore > 0) return; | ||
} | ||
@@ -324,3 +324,3 @@ } | ||
selection.timesSelected, now); | ||
return; | ||
if (result._frecencyScore > 0) return; | ||
} | ||
@@ -327,0 +327,0 @@ } |
62079