MCPcopy
hub / github.com/elastic/go-elasticsearch / WithDocumentID

Method WithDocumentID

esapi/api.index.go:266–270  ·  view source on GitHub ↗

WithDocumentID - document ID.

(v string)

Source from the content-addressed store, hash-verified

264
265// WithDocumentID - document ID.
266func (f Index) WithDocumentID(v string) func(*IndexRequest) {
267 return func(r *IndexRequest) {
268 r.DocumentID = v
269 }
270}
271
272// WithIfPrimaryTerm - only perform the index operation if the last operation that has changed the document has the specified primary term.
273func (f Index) WithIfPrimaryTerm(v int64) func(*IndexRequest) {

Callers 6

BenchmarkClientAPIFunction · 0.45
mainFunction · 0.45
setupDemoDataFunction · 0.45
initFunction · 0.45
initFunction · 0.45
BenchmarkAPIFunction · 0.45

Calls

no outgoing calls

Tested by 2

BenchmarkClientAPIFunction · 0.36
BenchmarkAPIFunction · 0.36