Skip to content

Commit

Permalink
adding core mtermvectors
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 16, 2024
1 parent 5862ab4 commit 77d3c7e
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions tests/default/_core/mtermvectors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test _mtermvectors APIs.
prologues:
- path: /books
method: PUT
request:
payload:
mappings:
properties:
author:
type: text
title:
term_vector: yes
type: text
year:
type: integer
- path: /_bulk
method: POST
parameters:
refresh: true
request:
content_type: application/x-ndjson
payload:
- {create: {_index: books, _id: book1}}
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960}
- {create: {_index: books, _id: book2}}
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991}
epilogues:
- path: /books
method: DELETE
status: [200, 404]

chapters:
- synopsis: Retrieve term vectors for specific documents.
path: /_mtermvectors
method: GET
request:
payload:
docs:
- _id: book1
_index: books
- _id: book2
_index: books
response:
status: 200

- synopsis: Retrieve term vectors for specific documents (POST).
path: /_mtermvectors
method: POST
request:
payload:
docs:
- _id: book1
_index: books
- _id: book2
_index: books
response:
status: 200

0 comments on commit 77d3c7e

Please sign in to comment.