【文件属性】:
文件名称:esjs:适用于Node的Elasticsearch-ish逆索引搜索引擎
文件大小:304KB
文件格式:ZIP
更新时间:2021-05-13 08:18:20
JavaScript
esjs
适用于Node的Elasticsearch-ish反向索引搜索引擎。
快速开始
安装
yarn add https://github.com/10eTechnology/esjs
用
import ESjs from 'esjs' ;
const fields = {
name : { boost : 2 } ,
description : { boost : 1 } ,
job : null ,
status : { analyzer : 'keyword' } ,
} ;
const idx = new ESjs ( { fields } ) ;
idx . addDoc ( {
id : 1 ,
name : 'Larry Jones' ,
description : 'A nice guy' ,
【文件预览】:
esjs-master
----.babelrc(33B)
----index.js(35B)
----package.json(1KB)
----.eslintrc.json(1KB)
----test()
--------config()
--------esjs.spec.js(13KB)
--------lib()
--------fixtures()
----performance()
--------index.js(109B)
--------docs.json(1.55MB)
--------benchmark.js(1KB)
----LICENSE(1KB)
----src()
--------config()
--------index.js(6KB)
--------stopwords.js(203B)
--------serializer.js(430B)
--------stopwords()
--------tokenizers.js(276B)
--------stemmers()
--------search.js(6KB)
--------charRegex.js(115B)
--------stemmers.js(126B)
--------pipeline.js(847B)
--------tokenizers()
----.gitignore(589B)
----webpack.config.js(534B)
----lib()
--------index.js(19KB)
----README.md(3KB)
----yarn.lock(192KB)