TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

81 点作者 jchapron超过 12 年前

12 条评论

kristopolous超过 12 年前
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 未加载
FuzzyDunlop超过 12 年前
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 未加载
smagch超过 12 年前
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>
tantalor超过 12 年前
How does this compare to <a href="http://reyesr.github.com/fullproof/" rel="nofollow">http://reyesr.github.com/fullproof/</a>?
slashdotdash超过 12 年前
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>
augustl超过 12 年前
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.
ErikRogneby超过 12 年前
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 未加载
tantalor超过 12 年前
&#62; A browser is required for running the tests.<p>Why? This is a red flag.
评论 #5321159 未加载
hajrice超过 12 年前
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 未加载
pudo超过 12 年前
Depending on the performance of this, it might be awesome to have some serialization format (i.e. inverted, normalized, tokenized JSON).
BaconJuice超过 12 年前
How do you index your pages? is that a manual process by creating your json file to be read?
napoleond超过 12 年前
This is amazing, and perfect timing for me. Thanks!!