Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Jul 5, 2024
1 parent e31da7f commit e8dfc0c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/_core/bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ chapters:
request_body:
content_type: application/x-ndjson
payload:
- { create: { _index: movies } }
- { director: Bennett Miller, title: Moneyball, year: 2011 }
- {create: {_index: movies}}
- {director: Bennett Miller, title: Moneyball, year: 2011}
- synopsis: Bulk document CRUD.
path: /_bulk
method: POST
request_body:
content_type: application/x-ndjson
payload:
- { create: { _index: books, _id: book_1392214 } }
- { author: Harper Lee, title: To Kill a Mockingbird, year: 1960 }
- { update: { _index: books, _id: book_1392214 } }
- { doc: { pages: 376 } }
- { update: { _index: books, _id: book_1392214 } }
- { doc: { pages: 376 }, _source: true }
- { update: { _index: books, _id: book_1392214 } }
- { script: { source: 'ctx._source.pages = 376;' } }
- { update: { _index: books, _id: does_not_exist } }
- { script: { source: 'ctx.op = "none";' }, scripted_upsert: true, upsert: { pages: 375 } }
- { delete: { _index: books, _id: book_1392214 } }
- {create: {_index: books, _id: book_1392214}}
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960}
- {update: {_index: books, _id: book_1392214}}
- {doc: {pages: 376}}
- {update: {_index: books, _id: book_1392214}}
- {doc: {pages: 376}, _source: true}
- {update: {_index: books, _id: book_1392214}}
- {script: {source: 'ctx._source.pages = 376;'}}
- {update: {_index: books, _id: does_not_exist}}
- {script: {source: 'ctx.op = "none";'}, scripted_upsert: true, upsert: {pages: 375}}
- {delete: {_index: books, _id: book_1392214}}

0 comments on commit e8dfc0c

Please sign in to comment.