Hi Oliver Thanks for dropping by, and congratulations on Lunr.js. It does indeed seem like a good fit for TiddlyWiki5 - your examples have been sitting in my browser tabs since Marc first posted. I'm hoping to get some time to make it into a plugin; looking at your excellent documentation it looks like the integration should be quite straightforward. I'll be sure to take you up on your kind offer of help if I run into difficulties,
Best wishes Jeremy On Thu, Mar 14, 2013 at 9:19 PM, Oliver Nightingale < [email protected]> wrote: > If you do decide to use lunr.js I'd be happy to help with any integration > or issues you find, I'm not massively familiar with TiddlyWiki but > hopefully you guys will find lunr.js a good fit. > > On Tuesday, 5 March 2013 22:12:48 UTC+2, Marc J. Cawood wrote: >> >> lunr.js is an advanced client-side content (JSON) indexing and querying >> library: >> http://blog.new-bamboo.co.uk/**2013/02/26/full-text-search-** >> in-your-browser<http://blog.new-bamboo.co.uk/2013/02/26/full-text-search-in-your-browser> >> >> Might be overkill but TW is about the only place I can imagine this kind >> of think making sense. >> >> Whadyathink Jeremy? >> >> Excerpt: >> >> With the index defined JSON documents can be added: >> >> 1 var documents = [{ 2 id: 1, 3 title: 'Twelfth Night', 4 body: >> 'If music be the food of love, play on' 5 }, { 6 id: 2, 7 title: >> 'Macbeth', 8 body: 'When shall we three meet again, In thunder, >> lightning, or in rain?' 9 }, {*10* id: 3,11 title: 'Richard III',12 >> body: 'Now is the winter of our discontent, Made glorious summer by this >> sun of York;'13 }]14 15 documents.forEach(function (document) {16 >> index.add(document)17 }) >> >> Searching is equally simple: >> >> 1 index.search('love') -> [{ ref: 1, score: 0.7854 }] >> >> >> -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
