fix the doc erors

This commit is contained in:
Lion 2022-08-27 13:33:56 +08:00
parent cffdc3d169
commit b299e9eaf1
1 changed files with 1 additions and 1 deletions

View File

@ -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}