Re: [twdev] Re: Request for help with new filter operator and new tutorial

2018-06-29 Thread Diego Mesa
All, Rob has fixed the issue with his plugin, so we can now have fuzzy search!!! On Thursday, June 28, 2018 at 11:09:21 AM UTC-5, Rob Hoelz wrote: > > Hi everyone! > > Diego was kind enough to bring this discussion to my attention - I plan on > fixing up that issue he ran into. > > Jeremy - if

Re: [twdev] Re: Request for help with new filter operator and new tutorial

2018-06-28 Thread Rob Hoelz
Hi everyone! Diego was kind enough to bring this discussion to my attention - I plan on fixing up that issue he ran into. Jeremy - if you decide to go with lunr.js but not use my plugin, please feel free to reach out if you have questions about lunr.js! One pitfall I ran into while upgrading

Re: [twdev] Re: Request for help with new filter operator and new tutorial

2018-06-28 Thread Diego Mesa
Hey Jeremy, Just wanted to let you know of this plugin: https://github.com/hoelzro/tw-full-text-search which incorporates lunr.js into TW for full text searching. I just tried today and am somewhat able to do fuzzy searching with it (does not deal with immediatel searching properly yet). I

Re: [twdev] Re: Request for help with new filter operator and new tutorial

2018-06-27 Thread Diego Mesa
Hey Jeremy, Thanks for your feedback - I agree search needs to performant. Im glad you're also looking at these issues! A priority for me is the inclusion of *fuzzy* searching - a quick look seems lunr does support it: https://lunrjs.com/guides/searching.html#fuzzy-matches but elastic does

Re: [twdev] Re: Request for help with new filter operator and new tutorial

2018-06-27 Thread Jeremy Ruston
Hi Diego Filter operators are often re-executed and so it's important that they perform well. For an expensive operation like a search we need to try to cache as much of the work as we can. An approach that should work is to introduce a new startup module that tracks changes to the store in

[twdev] Re: Request for help with new filter operator and new tutorial

2018-06-26 Thread Diego Mesa
Hey all, Thanks Jeremy for sending that. The following is *more pseduo-code than anything*, but reflects my quick hacking: (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; var fuze = require("$:/plugins/fuzzy/fuze.js"); var options = { shouldSort:

[twdev] Re: Request for help with new filter operator and new tutorial

2018-06-26 Thread Jed Carty
I hadn't realised it could be done that way. That makes including external libraries a lot easier than I thought. I am a bit embarrassed that I didn't notice you could do that. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe

[twdev] Re: Request for help with new filter operator and new tutorial

2018-06-26 Thread Jed Carty
I have looked at this a little and I may be able to help. I am not sure how much time I will have in the immediate future because there are some potentially major bugs in Bob that I need to take care of in addition to my day job but this looks like a good project. I think that using the way