We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06caafa + edd294a commit 234a48cCopy full SHA for 234a48c
web/service/index.go
@@ -22,10 +22,10 @@ func (i *Index) AddIndex(dbName string, request *model.IndexDoc) {
22
}
23
24
// BatchAddIndex 批次添加索引
25
-func (i *Index) BatchAddIndex(dbName string, documents []model.IndexDoc) {
+func (i *Index) BatchAddIndex(dbName string, documents []*model.IndexDoc) {
26
db := i.Container.GetDataBase(dbName)
27
for _, doc := range documents {
28
- go db.IndexDocument(&doc)
+ go db.IndexDocument(doc)
29
30
31
0 commit comments