From 5357d9d9ced13e2d864a421e6d6e7a37f2ae53db Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Fri, 26 Aug 2016 16:11:21 -0400 Subject: [PATCH] Add `// TESTRESPONSE` to mapper-attachements docs --- docs/plugins/mapper-attachments.asciidoc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/plugins/mapper-attachments.asciidoc b/docs/plugins/mapper-attachments.asciidoc index b5ceef39ae8..1a294cee78a 100644 --- a/docs/plugins/mapper-attachments.asciidoc +++ b/docs/plugins/mapper-attachments.asciidoc @@ -272,13 +272,13 @@ Will give you: }, "hits": { "total": 1, - "max_score": 0.16273327, + "max_score": 0.53484553, "hits": [ { "_index": "test", "_type": "person", "_id": "1", - "_score": 0.16273327, + "_score": 0.53484553, "fields": { "file.content_type": [ "text/plain; charset=ISO-8859-1" @@ -289,6 +289,7 @@ Will give you: } } -------------------------- +// TESTRESPONSE[s/"took": 2,/"took": $body.took,/] [[mapper-attachments-indexed-characters]] ==== Indexed Characters @@ -329,6 +330,7 @@ Note that you can force language using `_language` field when sending your actua [source,js] -------------------------- +PUT /test/person/1 { "my_attachment" : { "_language" : "en", @@ -336,6 +338,7 @@ Note that you can force language using `_language` field when sending your actua } } -------------------------- +// CONSOLE [[mapper-attachments-highlighting]] ==== Highlighting attachments @@ -393,19 +396,19 @@ It gives back: "took": 9, "timed_out": false, "_shards": { - "total": 1, - "successful": 1, + "total": 5, + "successful": 5, "failed": 0 }, "hits": { "total": 1, - "max_score": 0.13561106, + "max_score": 0.5446649, "hits": [ { "_index": "test", "_type": "person", "_id": "1", - "_score": 0.13561106, + "_score": 0.5446649, "highlight": { "file.content": [ "\"God Save the Queen\" (alternatively \"God Save the King\"\n" @@ -416,3 +419,4 @@ It gives back: } } -------------------------- +// TESTRESPONSE[s/"took": 9,/"took": $body.took,/]