Skip to content

Commit

Permalink
adding multi term vectors
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 15, 2024
1 parent 3389276 commit 68fe9a1
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions tests/default/indices/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 in an index.
path: /{index}/_mtermvectors
parameters:
index: books
method: GET
request:
payload:
docs:
- _id: "book1"

Check failure on line 43 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar

Check failure on line 43 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
- _id: "book2"

Check failure on line 44 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar

Check failure on line 44 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
response:
status: 200

- synopsis: Retrieve term vectors for specific documents in an index (POST).
path: /{index}/_mtermvectors
parameters:
index: books
method: POST
request:
payload:
docs:
- _id: "book1"

Check failure on line 56 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar

Check failure on line 56 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
- _id: "book2"

Check failure on line 57 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar

Check failure on line 57 in tests/default/indices/mtermvectors.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
response:
status: 200

0 comments on commit 68fe9a1

Please sign in to comment.