MCPcopy Create free account
hub / github.com/apache/answer-plugins / batchUpdateContent

Method batchUpdateContent

search-algolia/sync.go:75–82  ·  view source on GitHub ↗
(ctx context.Context, contents []*plugin.SearchContent)

Source from the content-addressed store, hash-verified

73}
74
75func (s *SearchAlgolia) batchUpdateContent(ctx context.Context, contents []*plugin.SearchContent) (err error) {
76 res, err := s.getIndex("").SaveObjects(contents)
77 if err != nil {
78 return
79 }
80 err = res.Wait()
81 return
82}

Callers 1

syncMethod · 0.95

Calls 1

getIndexMethod · 0.95

Tested by

no test coverage detected