javascript - Bloodhound.js - No sub-completions of strings -


sub-completions in, if write "og", "dog", right now, implemented standalone .js engine code, , can search "d", , give me "dog, dinner" if search "og", don't "dog", different demos, i'm doing currently...

acts.prototype.initializebloodhound = function (myparam) {     var options = myparam.split(",");     myengine = new bloodhound({         initialize: false,         local: options,         querytokenizer: bloodhound.tokenizers.whitespace,         datumtokenizer: bloodhound.tokenizers.whitespace     });     var vret = myengine.initialize(true);     vret.fail(function() { assert("bloodhound failed."); }); }; // ... other actions here ...  acts.prototype.bloodhoundautocomplete = function (myparam) {     myengine.search(myparam, bloodhound_sync, bloodhound_async); }  function bloodhound_sync(datums) {     lastreturn = datums; }  function bloodhound_async(datums) {     lastreturn = datums; } 

i'm logging lastresult , getting results above, want work way demos portray it, thank !


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -