From 081b3e39826129a1f923f706b623b823015bb0e8 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Tue, 23 Jul 2013 16:40:43 +0200 Subject: [PATCH] Removed client-specific `ignore_missing` parameter This parameter can introduce confusion, since people might think this is something working on Elasticsearch level, eg. passing it to `curl` --- rest-api-spec/test/delete/10_basic.yaml | 11 ++--------- rest-api-spec/test/get/10_basic.yaml | 7 ------- rest-api-spec/test/get_source/10_basic.yaml | 7 ------- rest-api-spec/test/update/10_doc.yaml | 8 -------- rest-api-spec/test/update/15_script.yaml | 10 ---------- 5 files changed, 2 insertions(+), 41 deletions(-) diff --git a/rest-api-spec/test/delete/10_basic.yaml b/rest-api-spec/test/delete/10_basic.yaml index 0b93dcc75fb..f5ed802432d 100644 --- a/rest-api-spec/test/delete/10_basic.yaml +++ b/rest-api-spec/test/delete/10_basic.yaml @@ -8,13 +8,6 @@ type: test id: 1 - - do: - delete: - index: test_1 - type: test - id: 1 - ignore_missing: 1 - - do: index: index: test_1 @@ -23,7 +16,7 @@ body: { foo: bar } - is_true: ok - - match: { _version: 3} + - match: { _version: 2 } - do: delete: @@ -31,4 +24,4 @@ type: test id: 1 - - match: { _version: 4} + - match: { _version: 3 } diff --git a/rest-api-spec/test/get/10_basic.yaml b/rest-api-spec/test/get/10_basic.yaml index e586ecf6f30..4ba0f23bc3e 100644 --- a/rest-api-spec/test/get/10_basic.yaml +++ b/rest-api-spec/test/get/10_basic.yaml @@ -8,13 +8,6 @@ type: test id: 1 - - do: - get: - index: test_1 - type: test - id: 1 - ignore_missing: 1 - - do: index: index: test_1 diff --git a/rest-api-spec/test/get_source/10_basic.yaml b/rest-api-spec/test/get_source/10_basic.yaml index b826faac5bc..443a4c72df4 100644 --- a/rest-api-spec/test/get_source/10_basic.yaml +++ b/rest-api-spec/test/get_source/10_basic.yaml @@ -11,13 +11,6 @@ type: test id: 1 - - do: - get_source: - index: test_1 - type: test - id: 1 - ignore_missing: 1 - - do: index: index: test_1 diff --git a/rest-api-spec/test/update/10_doc.yaml b/rest-api-spec/test/update/10_doc.yaml index 0b013067714..4dbd01cf754 100644 --- a/rest-api-spec/test/update/10_doc.yaml +++ b/rest-api-spec/test/update/10_doc.yaml @@ -9,14 +9,6 @@ id: 1 body: {doc: { foo: bar }} - - do: - update: - index: test_1 - type: test - id: 1 - body: {doc: { foo: bar }} - ignore_missing: 1 - - do: index: index: test_1 diff --git a/rest-api-spec/test/update/15_script.yaml b/rest-api-spec/test/update/15_script.yaml index e289115ffcb..00178100358 100644 --- a/rest-api-spec/test/update/15_script.yaml +++ b/rest-api-spec/test/update/15_script.yaml @@ -11,16 +11,6 @@ script: "ctx._source.foo = bar" params: { bar: 'xxx' } - - do: - update: - index: test_1 - type: test - id: 1 - ignore_missing: 1 - body: - script: "ctx._source.foo = bar" - params: { bar: 'xxx' } - - do: index: index: test_1