-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added tests for term vectors and removed id from required of termvectors@200 Signed-off-by: Tokesh <tokesh789@gmail.com> * added type for term vectors, fixing lint Signed-off-by: Tokesh <tokesh789@gmail.com> * hotfix path Signed-off-by: Tokesh <tokesh789@gmail.com> * adding multi term vectors Signed-off-by: Tokesh <tokesh789@gmail.com> * renaming folder and lint fix Signed-off-by: Tokesh <tokesh789@gmail.com> * adding type to mterm vector specs Signed-off-by: Tokesh <tokesh789@gmail.com> * hotfix of string Signed-off-by: Tokesh <tokesh789@gmail.com> * added type to wrong place of specs Signed-off-by: Tokesh <tokesh789@gmail.com> * adding core mtermvectors Signed-off-by: Tokesh <tokesh789@gmail.com> * using multiple method, fix grammar in changelog Signed-off-by: Tokesh <tokesh789@gmail.com> --------- Signed-off-by: Tokesh <tokesh789@gmail.com> Signed-off-by: Niyazbek Torekeldi <78027392+Tokesh@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
148 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
$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 | ||
- POST | ||
request: | ||
payload: | ||
docs: | ||
- _id: book1 | ||
_index: books |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
$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 | ||
- POST | ||
request: | ||
payload: | ||
docs: | ||
- _id: book1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _termvectors 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: Get term vectors for a specific index. | ||
path: /{index}/_termvectors | ||
parameters: | ||
index: books | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
payload: | ||
doc: | ||
title: To kill | ||
- synopsis: Get term vectors for a document by its ID. | ||
path: /{index}/_termvectors/{id} | ||
parameters: | ||
index: books | ||
id: book1 | ||
method: | ||
- GET | ||
- POST |