cebe/js-search
最新稳定版本:0.9.3
Composer 安装命令:
composer require cebe/js-search
包简介
A client side search engine for use on static pages.
README 文档
README
This is a client side search engine for use on static pages.
It uses a pre-compiled search index to add a fulltext search to static HTML pages such as github pages or offline API documentation. The index is built by a PHP script using a similar yet much more simplified and dump approach than the popular search engine Lucene.
To see how it looks like, check out the demo.
Installation
PHP 5.4 or higher is required to run the index generator.
Installation is recommended to be done via composer by adding the following to the require section in your composer.json:
"cebe/js-search": "~0.9"
Alternatively run composer require "cebe/js-search".
Usage
TODO.
See example.html for an implementation.
Generate the index
Using the command line tool:
vendor/bin/jsindex <path-to-your-html-files>
This will generate a jssearch.index.js file that you have to include in the HTML header.
统计信息
- 总下载量: 680.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 142
- 点击次数: 0
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-24