admin管理员组文章数量:1357602
I was wondering if there's a Javascript equivalent to the Lucene API, designed to be used on client side to index a relatively small data set.
An example use case would be a static site (generated for instance) with the ability to search content without server side processing.
I was wondering if there's a Javascript equivalent to the Lucene API, designed to be used on client side to index a relatively small data set.
An example use case would be a static site (generated for instance) with the ability to search content without server side processing.
Share Improve this question asked Apr 14, 2014 at 10:44 Raphaël LemaireRaphaël Lemaire 1,3091 gold badge13 silver badges23 bronze badges3 Answers
Reset to default 4I've found this : http://lunrjs./ It looks like what I'm searching for but doesn't seem to support fuzzy searches.
Theoretically, you could use Search-index in conjunction with node-browserify or another similar hack. Practically, I doubt this effort is worth pursuing.
You also have search-index as @mindas mentions. Lunr is more mature, and easier to get up and runnig, but search-index is maybe more feature rich? As with lunr, you'll need to do stemming on the data you want to index and/or use the matcher. The matcher does prefix search and returns words and/or phrases that is present in your document index.
I'm biased, but I think it's now wort the effort to use search-index. There are now some examples on how to use it client side with browserify.
本文标签: Client side javascript equivalent to LuceneStack Overflow
版权声明:本文标题:Client side javascript equivalent to Lucene - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744067878a2585341.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论