项目作者: leungwensen

项目描述 :
built for static page full-text search
高级语言: JavaScript
项目地址: git://github.com/leungwensen/doc-indexer.git
创建时间: 2017-03-08T09:30:31Z
项目社区:https://github.com/leungwensen/doc-indexer

开源协议:MIT License

下载


doc-indexer

built for static page full-text search

structure

install

  1. $ npm i doc-indexer --save

DocSet

html, markdown, etc.

tokens

  1. {
  2. docs: {
  3. a: 'uri/to/a-file',
  4. b: 'uri/to/b-file',
  5. },
  6. tokens: {
  7. 'someToken': {
  8. stem: 'someToken',
  9. minSize: 8,
  10. maxSize: 9,
  11. count: 10,
  12. indices: [
  13. {
  14. ranking: 0,
  15. link: '#xxx',
  16. doc: 'a',
  17. index: 0
  18. }
  19. ]
  20. }
  21. }
  22. }

use in terminal

TODO

use in browser

TODO