@@ -338,80 +338,88 @@ The API returns the following response:
338338[source,console-result]
339339----
340340{
341- "docs": [
342- {
343- "processor_results": [
344- {
345- "doc": {
346- "_id": "id",
347- "_index": "index",
348- "_source": {
349- "field2": "_value2",
350- "foo": "bar"
351- },
352- "_ingest": {
353- "timestamp": "2017-05-04T22:46:09.674Z",
354- "pipeline": "_simulate_pipeline"
355- }
356- }
341+ "docs" : [
342+ {
343+ "processor_results" : [
344+ {
345+ "processor_type" : "set",
346+ "status" : "success",
347+ "doc" : {
348+ "_index" : "index",
349+ "_id" : "id",
350+ "_source" : {
351+ "field2" : "_value2",
352+ "foo" : "bar"
357353 },
358- {
359- "doc": {
360- "_id": "id",
361- "_index": "index",
362- "_source": {
363- "field3": "_value3",
364- "field2": "_value2",
365- "foo": "bar"
366- },
367- "_ingest": {
368- "timestamp": "2017-05-04T22:46:09.675Z",
369- "pipeline": "_simulate_pipeline"
370- }
371- }
354+ "_ingest" : {
355+ "pipeline" : "_simulate_pipeline",
356+ "timestamp" : "2020-07-30T01:21:24.251836Z"
372357 }
373- ]
374- },
375- {
376- "processor_results": [
377- {
378- "doc": {
379- "_id": "id",
380- "_index": "index",
381- "_source": {
382- "field2": "_value2",
383- "foo": "rab"
384- },
385- "_ingest": {
386- "timestamp": "2017-05-04T22:46:09.676Z",
387- "pipeline": "_simulate_pipeline"
388- }
389- }
358+ }
359+ },
360+ {
361+ "processor_type" : "set",
362+ "status" : "success",
363+ "doc" : {
364+ "_index" : "index",
365+ "_id" : "id",
366+ "_source" : {
367+ "field3" : "_value3",
368+ "field2" : "_value2",
369+ "foo" : "bar"
390370 },
391- {
392- "doc": {
393- "_id": "id",
394- "_index": "index",
395- "_source": {
396- "field3": "_value3",
397- "field2": "_value2",
398- "foo": "rab"
399- },
400- "_ingest": {
401- "timestamp": "2017-05-04T22:46:09.677Z",
402- "pipeline": "_simulate_pipeline"
403- }
404- }
371+ "_ingest" : {
372+ "pipeline" : "_simulate_pipeline",
373+ "timestamp" : "2020-07-30T01:21:24.251836Z"
405374 }
406- ]
407- }
408- ]
375+ }
376+ }
377+ ]
378+ },
379+ {
380+ "processor_results" : [
381+ {
382+ "processor_type" : "set",
383+ "status" : "success",
384+ "doc" : {
385+ "_index" : "index",
386+ "_id" : "id",
387+ "_source" : {
388+ "field2" : "_value2",
389+ "foo" : "rab"
390+ },
391+ "_ingest" : {
392+ "pipeline" : "_simulate_pipeline",
393+ "timestamp" : "2020-07-30T01:21:24.251863Z"
394+ }
395+ }
396+ },
397+ {
398+ "processor_type" : "set",
399+ "status" : "success",
400+ "doc" : {
401+ "_index" : "index",
402+ "_id" : "id",
403+ "_source" : {
404+ "field3" : "_value3",
405+ "field2" : "_value2",
406+ "foo" : "rab"
407+ },
408+ "_ingest" : {
409+ "pipeline" : "_simulate_pipeline",
410+ "timestamp" : "2020-07-30T01:21:24.251863Z"
411+ }
412+ }
413+ }
414+ ]
415+ }
416+ ]
409417}
410418----
411- // TESTRESPONSE[s/"2017-05-04T22:46:09.674Z "/$body.docs.0.processor_results.0.doc._ingest.timestamp/]
412- // TESTRESPONSE[s/"2017-05-04T22:46:09.675Z "/$body.docs.0.processor_results.1.doc._ingest.timestamp/]
413- // TESTRESPONSE[s/"2017-05-04T22:46:09.676Z "/$body.docs.1.processor_results.0.doc._ingest.timestamp/]
414- // TESTRESPONSE[s/"2017-05-04T22:46:09.677Z "/$body.docs.1.processor_results.1.doc._ingest.timestamp/]
419+ // TESTRESPONSE[s/"2020-07-30T01:21:24.251836Z "/$body.docs.0.processor_results.0.doc._ingest.timestamp/]
420+ // TESTRESPONSE[s/"2020-07-30T01:21:24.251836Z "/$body.docs.0.processor_results.1.doc._ingest.timestamp/]
421+ // TESTRESPONSE[s/"2020-07-30T01:21:24.251863Z "/$body.docs.1.processor_results.0.doc._ingest.timestamp/]
422+ // TESTRESPONSE[s/"2020-07-30T01:21:24.251863Z "/$body.docs.1.processor_results.1.doc._ingest.timestamp/]
415423
416424////
417425[source,console]
0 commit comments