TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lunr.js - Simple full-text search in your browser

81 pointsby jchapronabout 12 years ago

12 comments

kristopolousabout 12 years ago
I see you are using my stemmer implementation ... snowball and porter2 are better - git clone that instead.<p>In fact, if you had poked around, you probably could have snagged about 90% of this code from various projects ... too bad I didn't put it together like you did.<p>Ah well ... internet fame points to you I guess.
评论 #5324451 未加载
FuzzyDunlopabout 12 years ago
There's a detailed write up from the author about how it all works at: <a href="http://blog.new-bamboo.co.uk/2013/02/26/full-text-search-in-your-browser" rel="nofollow">http://blog.new-bamboo.co.uk/2013/02/26/full-text-search-in-...</a>
评论 #5324439 未加载
smagchabout 12 years ago
As for server side, reds is a simple full-text search module of Node.js. <a href="https://github.com/visionmedia/reds" rel="nofollow">https://github.com/visionmedia/reds</a>
tantalorabout 12 years ago
How does this compare to <a href="http://reyesr.github.com/fullproof/" rel="nofollow">http://reyesr.github.com/fullproof/</a>?
slashdotdashabout 12 years ago
I created a small Jekyll plugin to add full-text search using lunr.js for the generated, static sites.<p><a href="https://github.com/slashdotdash/jekyll-lunr-js-search" rel="nofollow">https://github.com/slashdotdash/jekyll-lunr-js-search</a>
augustlabout 12 years ago
I think I'll put this to use in an internal admin/support system in need of search. All the data is on the client already (AngularJS), and it's less than thousand docs for now.
ErikRognebyabout 12 years ago
I am sure there are some applications that might need this due to obfuscation of data from the users... But doesn't the browser already have full text search? (Control-F)?
评论 #5319507 未加载
评论 #5319466 未加载
评论 #5319316 未加载
tantalorabout 12 years ago
&#62; A browser is required for running the tests.<p>Why? This is a red flag.
评论 #5321159 未加载
hajriceabout 12 years ago
Any stats on the limitations ?<p>I'm wondering how efficient this would be given that indexing a lot of data via javascript might really not be a good idea..
评论 #5319270 未加载
评论 #5319234 未加载
pudoabout 12 years ago
Depending on the performance of this, it might be awesome to have some serialization format (i.e. inverted, normalized, tokenized JSON).
BaconJuiceabout 12 years ago
How do you index your pages? is that a manual process by creating your json file to be read?
napoleondabout 12 years ago
This is amazing, and perfect timing for me. Thanks!!