Add adds an item to the indexer. It returns an error when the item cannot be added. Use the OnSuccess and OnFailure callbacks to get the operation result for the item. You must call the Close() method after you're done adding items. It is safe for concurrent use. When it's called from goroutines,
(context.Context, BulkIndexerItem)
| 51 | // It is safe for concurrent use. When it's called from goroutines, |
| 52 | // they must finish before the call to Close, eg. using sync.WaitGroup. |
| 53 | Add(context.Context, BulkIndexerItem) error |
| 54 | |
| 55 | // Close waits until all added items are flushed and closes the indexer. |
| 56 | Close(context.Context) error |
no outgoing calls