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

Method DeleteContent

search-elasticsearch/es.go:128–133  ·  view source on GitHub ↗
(ctx context.Context, contentID string)

Source from the content-addressed store, hash-verified

126}
127
128func (s *SearchEngine) DeleteContent(ctx context.Context, contentID string) error {
129 if s.Operator == nil {
130 return fmt.Errorf("es client not init")
131 }
132 return s.Operator.DeleteDoc(ctx, s.getIndexName(), contentID)
133}
134
135func (s *SearchEngine) RegisterSyncer(ctx context.Context, syncer plugin.SearchSyncer) {
136 s.syncer = syncer

Callers

nothing calls this directly

Calls 2

getIndexNameMethod · 0.95
DeleteDocMethod · 0.80

Tested by

no test coverage detected