summaryrefslogtreecommitdiff
path: root/pieces/suggest.js
diff options
context:
space:
mode:
Diffstat (limited to 'pieces/suggest.js')
-rw-r--r--pieces/suggest.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/pieces/suggest.js b/pieces/suggest.js
index ab62cfd..a420edd 100644
--- a/pieces/suggest.js
+++ b/pieces/suggest.js
@@ -1,7 +1,10 @@
const kb = require('./kb-util.js');
const match = require('./match-util.js');
-var n = 2; // Ngram base
+var _allowFuzzy = true; // enable|disable fuzzy search
+var n = 2; // Ngram base
+var _fuzzyLimit = .5; // minimum bigram score for being considered a match
+
/** (Search) SUGGESTIONS ENGINE
* ---------------------------------------------------------------------------
@@ -75,8 +78,7 @@ function suggestions_module(options) {
var _maxResults = 24; // limit suggestions
var _blendProds = 4; // minimum final-produncts to blend with next-word suggestions
var _timeout_ms = 100; // time (in ms) for the search engine to find matches (before rendering)
- var _allowFuzzy = true; // enable|disable fuzzy search
- var _fuzzyLimit = .5; // minimum bigram score for being considered a match
+
var _Ngram_base = 2; // number of N in Ngram spliting algorithm
var _isReady = false; // whether the searchbox is ready to be used