opensearch-go icon indicating copy to clipboard operation
opensearch-go copied to clipboard

[FEATURE] i want to add a meta(map[string]interface{}) fields on BulkIndexerItem, for OnSuccess callback

Open pwm1992 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

when I use bulk request to create doc, I want to modify some extraData on CallBack func (onSuccess/OnFailed)

What solution would you like?

add a meta(map[string]interface{})

What alternatives have you considered?

no

Do you have any additional context?

use the opensearch bulk to consume log(file) for batch create doc, i want to implement resume from break-point for the file. so, i have to know about each file offset of doc when I create doc success. but the file offset is extradata, so i want to add the metadata

pwm1992 avatar Nov 28 '23 01:11 pwm1992

This is a reasonable suggestion. Want to give it a try @pwm1992?

dblock avatar Dec 04 '23 15:12 dblock