-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
10 changed files
with
160 additions
and
62 deletions.
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
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,23 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_analyze with a filter. | ||
version: '>= 2.17' | ||
chapters: | ||
- synopsis: Apply a asciifolding filter. | ||
path: /_analyze | ||
method: GET | ||
request: | ||
payload: | ||
tokenizer: keyword | ||
filter: | ||
- asciifolding | ||
text: Léon | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: Leon | ||
type: word | ||
start_offset: 0 | ||
end_offset: 4 | ||
position: 0 |
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,24 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_analyze with a filter. | ||
chapters: | ||
- synopsis: Apply a lowercase character filter. | ||
path: /_analyze | ||
method: GET | ||
request: | ||
payload: | ||
tokenizer: keyword | ||
filter: | ||
- lowercase | ||
char_filter: | ||
- html_strip | ||
text: <b>Moneyball</b> | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: moneyball | ||
type: word | ||
start_offset: 3 | ||
end_offset: 16 | ||
position: 0 |
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,23 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_analyze with a filter. | ||
version: '>= 2.17' | ||
chapters: | ||
- synopsis: Apply a persian_stem filter. | ||
path: /_analyze | ||
method: GET | ||
request: | ||
payload: | ||
tokenizer: keyword | ||
filter: | ||
- persian_stem | ||
text: جامدات | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: جامد | ||
type: word | ||
start_offset: 0 | ||
end_offset: 6 | ||
position: 0 |
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,23 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_analyze with a filter. | ||
version: '>= 2.17' | ||
chapters: | ||
- synopsis: Apply a porter_stem filter. | ||
path: /_analyze | ||
method: GET | ||
request: | ||
payload: | ||
tokenizer: keyword | ||
filter: | ||
- porter_stem | ||
text: Directed by Bennett Miller | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: Directed by Bennett Mil | ||
type: word | ||
start_offset: 0 | ||
end_offset: 26 | ||
position: 0 |
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,26 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_analyze with a filter. | ||
chapters: | ||
- synopsis: Combine a lowercase translation with a stop filter. | ||
path: /_analyze | ||
method: GET | ||
request: | ||
payload: | ||
tokenizer: whitespace | ||
filter: | ||
- lowercase | ||
- type: stop | ||
stopwords: | ||
- in | ||
- to | ||
text: Moneyball directed by Bennett Miller | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: moneyball | ||
type: word | ||
start_offset: 0 | ||
end_offset: 9 | ||
position: 0 |
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,23 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test /_analyze with a filter. | ||
chapters: | ||
- synopsis: Apply an uppercase character filter. | ||
path: /_analyze | ||
method: GET | ||
request: | ||
payload: | ||
tokenizer: keyword | ||
filter: | ||
- uppercase | ||
text: Moneyball | ||
response: | ||
status: 200 | ||
payload: | ||
tokens: | ||
- token: MONEYBALL | ||
type: word | ||
start_offset: 0 | ||
end_offset: 9 | ||
position: 0 | ||
|