(ctx context.Context, contentID string)
| 126 | } |
| 127 | |
| 128 | func (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 | |
| 135 | func (s *SearchEngine) RegisterSyncer(ctx context.Context, syncer plugin.SearchSyncer) { |
| 136 | s.syncer = syncer |
nothing calls this directly
no test coverage detected