built for static page full-text search
built for static page full-text search
$ npm i doc-indexer --save
html, markdown, etc.
{
docs: {
a: 'uri/to/a-file',
b: 'uri/to/b-file',
},
tokens: {
'someToken': {
stem: 'someToken',
minSize: 8,
maxSize: 9,
count: 10,
indices: [
{
ranking: 0,
link: '#xxx',
doc: 'a',
index: 0
}
]
}
}
}
TODO
TODO