Skip to content

Commit 234a48c

Browse files
authored
Merge pull request #31 from XiaoK29/dev
Dev
2 parents 06caafa + edd294a commit 234a48c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/service/index.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func (i *Index) AddIndex(dbName string, request *model.IndexDoc) {
2222
}
2323

2424
// BatchAddIndex 批次添加索引
25-
func (i *Index) BatchAddIndex(dbName string, documents []model.IndexDoc) {
25+
func (i *Index) BatchAddIndex(dbName string, documents []*model.IndexDoc) {
2626
db := i.Container.GetDataBase(dbName)
2727
for _, doc := range documents {
28-
go db.IndexDocument(&doc)
28+
go db.IndexDocument(doc)
2929
}
3030
}
3131

0 commit comments

Comments
 (0)