Skip to content

Commit

Permalink
Remove parent query string parameter (elastic#41098)
Browse files Browse the repository at this point in the history
This commit removes the deprecated parent query string
parameter. The routing parameter should be used instead.
  • Loading branch information
russcam authored and jimczi committed May 20, 2019
1 parent 307bc17 commit e700c4c
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"type" : "string",
"description" : "Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
},
"parent": {
"type" : "string",
"description" : "ID of the parent document"
},
"refresh": {
"type" : "enum",
"options": ["true", "false", "wait_for"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"type" : "string",
"description" : "Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
},
"parent": {
"type" : "string",
"description" : "ID of parent document"
},
"refresh": {
"type" : "enum",
"options": ["true", "false", "wait_for"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"type": "list",
"description" : "A comma-separated list of stored fields to return in the response"
},
"parent": {
"type" : "string",
"description" : "The ID of the parent document"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
}
},
"params": {
"parent": {
"type" : "string",
"description" : "The ID of the parent document"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
"type" : "boolean",
"description" : "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored"
},
"parent": {
"type" : "string",
"description" : "The ID of the parent document"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
Expand Down
4 changes: 0 additions & 4 deletions rest-api-spec/src/main/resources/rest-api-spec/api/get.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"type": "list",
"description" : "A comma-separated list of stored fields to return in the response"
},
"parent": {
"type" : "string",
"description" : "The ID of the parent document"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
}
},
"params": {
"parent": {
"type" : "string",
"description" : "The ID of the parent document"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
Expand Down
4 changes: 0 additions & 4 deletions rest-api-spec/src/main/resources/rest-api-spec/api/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
"default" : "index",
"description" : "Explicit operation type"
},
"parent": {
"type" : "string",
"description" : "ID of the parent document"
},
"refresh": {
"type" : "enum",
"options": ["true", "false", "wait_for"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@
"description" : "Specific routing value. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".",
"required" : false
},
"parent" : {
"type" : "string",
"description" : "Parent id of documents. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".",
"required" : false
},
"realtime": {
"type": "boolean",
"description": "Specifies if requests are real-time as opposed to near-real-time (default: true).",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@
"description" : "Specific routing value.",
"required" : false
},
"parent": {
"type" : "string",
"description" : "Parent id of documents.",
"required" : false
},
"realtime": {
"type": "boolean",
"description": "Specifies if request is real-time as opposed to near-real-time (default: true).",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
"type": "string",
"description": "The script language (default: painless)"
},
"parent": {
"type": "string",
"description": "ID of the parent document. Is is only used for routing and when for the upsert request"
},
"refresh": {
"type" : "enum",
"options": ["true", "false", "wait_for"],
Expand Down

0 comments on commit e700c4c

Please sign in to comment.