@@ -14,7 +14,7 @@ import (
14
14
15
15
// BulkUpdateRequest is a request to update a document in Elasticsearch.
16
16
//
17
- // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x /docs-bulk.html
17
+ // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0 /docs-bulk.html
18
18
// for details.
19
19
type BulkUpdateRequest struct {
20
20
BulkableRequest
@@ -120,8 +120,8 @@ func (r *BulkUpdateRequest) Parent(parent string) *BulkUpdateRequest {
120
120
}
121
121
122
122
// Script specifies an update script.
123
- // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x /docs-bulk.html#bulk-update
124
- // and https://www.elastic.co/guide/en/elasticsearch/reference/7.x /modules-scripting.html
123
+ // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0 /docs-bulk.html#bulk-update
124
+ // and https://www.elastic.co/guide/en/elasticsearch/reference/7.0 /modules-scripting.html
125
125
// for details.
126
126
func (r * BulkUpdateRequest ) Script (script * Script ) * BulkUpdateRequest {
127
127
r .script = script
@@ -132,7 +132,7 @@ func (r *BulkUpdateRequest) Script(script *Script) *BulkUpdateRequest {
132
132
// ScripedUpsert specifies if your script will run regardless of
133
133
// whether the document exists or not.
134
134
//
135
- // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x /docs-update.html#_literal_scripted_upsert_literal
135
+ // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0 /docs-update.html#_literal_scripted_upsert_literal
136
136
func (r * BulkUpdateRequest ) ScriptedUpsert (upsert bool ) * BulkUpdateRequest {
137
137
r .scriptedUpsert = & upsert
138
138
r .source = nil
@@ -172,7 +172,7 @@ func (r *BulkUpdateRequest) Doc(doc interface{}) *BulkUpdateRequest {
172
172
// DocAsUpsert indicates whether the contents of Doc should be used as
173
173
// the Upsert value.
174
174
//
175
- // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x /docs-update.html#_literal_doc_as_upsert_literal
175
+ // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0 /docs-update.html#_literal_doc_as_upsert_literal
176
176
// for details.
177
177
func (r * BulkUpdateRequest ) DocAsUpsert (docAsUpsert bool ) * BulkUpdateRequest {
178
178
r .docAsUpsert = & docAsUpsert
@@ -218,7 +218,7 @@ func (r *BulkUpdateRequest) String() string {
218
218
219
219
// Source returns the on-wire representation of the update request,
220
220
// split into an action-and-meta-data line and an (optional) source line.
221
- // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x /docs-bulk.html
221
+ // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0 /docs-bulk.html
222
222
// for details.
223
223
func (r * BulkUpdateRequest ) Source () ([]string , error ) {
224
224
// { "update" : { "_index" : "test", "_type" : "type1", "_id" : "1", ... } }
0 commit comments