WithDocumentID - document ID.
(v string)
| 264 | |
| 265 | // WithDocumentID - document ID. |
| 266 | func (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. |
| 273 | func (f Index) WithIfPrimaryTerm(v int64) func(*IndexRequest) { |
no outgoing calls