fix the doc erors
This commit is contained in:
parent
cffdc3d169
commit
b299e9eaf1
|
|
@ -55,7 +55,7 @@ try {
|
||||||
// 同步读取buffer
|
// 同步读取buffer
|
||||||
const buffer = Searcher.loadContentFromFile(dbPath)
|
const buffer = Searcher.loadContentFromFile(dbPath)
|
||||||
// 创建searcher对象
|
// 创建searcher对象
|
||||||
const searcher = Searcher.newWithVectorIndex(buffer)
|
const searcher = Searcher.newWithBuffer(buffer)
|
||||||
// 查询 await 或 promise均可
|
// 查询 await 或 promise均可
|
||||||
const data = await searcher.search('218.4.167.70')
|
const data = await searcher.search('218.4.167.70')
|
||||||
// data: {region:'中国|0|江苏省|苏州市|电信', ioCount: 0, took: 0.063833}
|
// data: {region:'中国|0|江苏省|苏州市|电信', ioCount: 0, took: 0.063833}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue