(ctx context.Context, content *plugin.SearchContent)
| 119 | } |
| 120 | |
| 121 | func (s *SearchEngine) UpdateContent(ctx context.Context, content *plugin.SearchContent) error { |
| 122 | if s.Operator == nil { |
| 123 | return fmt.Errorf("es client not init") |
| 124 | } |
| 125 | return s.Operator.SaveDoc(ctx, s.getIndexName(), content.ObjectID, CreateDocFromSearchContent(content.ObjectID, content)) |
| 126 | } |
| 127 | |
| 128 | func (s *SearchEngine) DeleteContent(ctx context.Context, contentID string) error { |
| 129 | if s.Operator == nil { |
nothing calls this directly
no test coverage detected