diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2024-04-10 13:29:01 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2024-04-10 13:29:01 +0300 |
| commit | 2676484041e8771257bf99ed223bd9321fe72fa8 (patch) | |
| tree | ef2e71a6623eabe67bfb4c9732f5271ca945b509 /pieces/suggest.js | |
| parent | 0c65dee04506567ee50537ff2fbb83998b8fef0f (diff) | |
| download | oseine-2676484041e8771257bf99ed223bd9321fe72fa8.tar.gz oseine-2676484041e8771257bf99ed223bd9321fe72fa8.tar.bz2 oseine-2676484041e8771257bf99ed223bd9321fe72fa8.zip | |
working on a custom fs-cache system
Diffstat (limited to 'pieces/suggest.js')
| -rw-r--r-- | pieces/suggest.js | 8 |
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 |
