Skip to content

Commit

Permalink
removing outdated parameters from index and create and adding missing…
Browse files Browse the repository at this point in the history
… `op_type` to `_create`
  • Loading branch information
olcbean committed Nov 10, 2017
1 parent 3ed558d commit 000dc52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
14 changes: 6 additions & 8 deletions rest-api-spec/src/main/resources/rest-api-spec/api/create.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"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)"
},
"op_type": {
"type" : "enum",
"options" : ["index", "create"],
"default" : "index",
"description" : "Explicit operation type"
},
"parent": {
"type" : "string",
"description" : "ID of the parent document"
Expand All @@ -44,14 +50,6 @@
"type" : "time",
"description" : "Explicit operation timeout"
},
"timestamp": {
"type" : "time",
"description" : "Explicit timestamp for the document"
},
"ttl": {
"type" : "time",
"description" : "Expiration time for the document"
},
"version" : {
"type" : "number",
"description" : "Explicit version number for concurrency control"
Expand Down
8 changes: 0 additions & 8 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 @@ -49,14 +49,6 @@
"type" : "time",
"description" : "Explicit operation timeout"
},
"timestamp": {
"type" : "time",
"description" : "Explicit timestamp for the document"
},
"ttl": {
"type" : "time",
"description" : "Expiration time for the document"
},
"version" : {
"type" : "number",
"description" : "Explicit version number for concurrency control"
Expand Down

0 comments on commit 000dc52

Please sign in to comment.