- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://lunrjs.com/
- 软件文档: http://lunrjs.com/docs
软件介绍
lunr.js 实现了在网页上的搜索引擎,类似 Solr。
示例代码:
//定义索引
var idx = lunr(function () {
this.field('title', { boost: 10 })
this.field('body')
})
//添加索引
var doc = {
"title": "Twelfth-Night",
"body": "If music be the food of love, play on: Give me excess of it…",
"author": "William Shakespeare",
"id": 1
}
idx.add(doc)
//搜索
idx.search("love")
//返回结果
[{
"ref": 1,
"score": 0.87533
}]
算法技术手册(影印版第2版)(英文版)
(美)乔治·T·海涅曼//加里·波利斯//斯坦利·塞克欧 / 东南大学 / 2017-10-01 / 96.0
一起来看看 《算法技术手册(影印版第2版)(英文版)》 这本书的介绍吧!
