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