Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Büscher committed Dec 14, 2018
1 parent 74997b4 commit e901dba
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
10 changes: 5 additions & 5 deletions docs/reference/docs/get.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ twitter with id valued 0:

[source,js]
--------------------------------------------------
GET twitter/0
GET twitter/_doc/0
--------------------------------------------------
// CONSOLE
// TEST[setup:twitter]
Expand Down Expand Up @@ -217,13 +217,13 @@ will fail.
[[_source]]
=== Getting the +_source+ directly

Use the `/{index}/{id}/_source` endpoint to get
Use the `/{index}/_source/{id}` endpoint to get
just the `_source` field of the document,
without any additional content around it. For example:

[source,js]
--------------------------------------------------
GET twitter/_doc/1/_source
GET twitter/_source/1
--------------------------------------------------
// CONSOLE
// TEST[continued]
Expand All @@ -232,7 +232,7 @@ You can also use the same source filtering parameters to control which parts of

[source,js]
--------------------------------------------------
GET twitter/_doc/1/_source?_source_includes=*.id&_source_excludes=entities'
GET twitter/_source/1/?_source_includes=*.id&_source_excludes=entities'
--------------------------------------------------
// CONSOLE
// TEST[continued]
Expand All @@ -242,7 +242,7 @@ An existing document will not have a _source if it is disabled in the <<mapping-

[source,js]
--------------------------------------------------
HEAD twitter/_doc/1/_source
HEAD twitter/_source/1
--------------------------------------------------
// CONSOLE
// TEST[continued]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
body: { "foo": "bar" }

- do:
warnings:
- '[types removal] Specifying types in get_source requests is deprecated.'
get_source:
index: test_1
type: test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"Routing":


- skip:
version: " - 6.99.99"
reason: types are required in requests before 7.0.0

- do:
indices.create:
index: test_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"Source filtering":


- skip:
version: " - 6.99.99"
reason: types are required in requests before 7.0.0

- do:
index:
index: test_1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
"Missing document with catch":

- skip:
features: warnings
version: " - 6.99.99"
reason: types are required in requests before 7.0.0

---
"Missing document with catch":

- do:
catch: missing
get_source:
Expand All @@ -14,6 +15,11 @@
---
"Missing document with ignore":

- skip:
features: warnings
version: " - 6.99.99"
reason: types are required in requests before 7.0.0

- do:
get_source:
index: test_1
Expand Down

0 comments on commit e901dba

Please sign in to comment.