Lunr.js 有点像Solr,但是小得多而不是那么亮。 例 可以使用以下方法创建非常简单的搜索索引: var idx = lunr ( function ( ) { this . field ( 'title' ) this . field ( 'body' ) this . add ( { "title" : "Twelfth-Night" , "body" : "If music be the food of love, play on: Give me excess of it..." , "author" : "William Shakespear