-
Notifications
You must be signed in to change notification settings - Fork 62
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: Thomas Farr <tsfarr@amazon.com>
- Loading branch information
Showing
5 changed files
with
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ARG OPENSEARCH_DOCKER_HUB_PROJECT | ||
ARG OPENSEARCH_VERSION | ||
ARG OPENSEARCH_DOCKER_REF | ||
|
||
FROM ${OPENSEARCH_DOCKER_HUB_PROJECT}/opensearch:${OPENSEARCH_VERSION}${OPENSEARCH_DOCKER_REF} | ||
RUN ./bin/opensearch-plugin install -b analysis-icu |
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,17 @@ | ||
version: '3' | ||
|
||
services: | ||
opensearch-cluster: | ||
build: | ||
context: . | ||
args: | ||
- OPENSEARCH_DOCKER_HUB_PROJECT=${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject} | ||
- OPENSEARCH_DOCKER_REF=${OPENSEARCH_DOCKER_REF} | ||
- OPENSEARCH_VERSION=${OPENSEARCH_VERSION:-latest} | ||
ports: | ||
- 9200:9200 | ||
- 9600:9600 | ||
environment: | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!} | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- discovery.type=single-node |
81 changes: 81 additions & 0 deletions
81
tests/plugins/analysis-icu/indices/mapping/icu_collation_keyword.yaml
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,81 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test mappings endpoints. | ||
warnings: | ||
multiple-paths-detected: false | ||
prologues: [] | ||
epilogues: | ||
- path: /collated | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create an index with a mapping that uses ICU collation. | ||
path: /{index} | ||
method: PUT | ||
parameters: | ||
index: collated | ||
request: | ||
payload: | ||
mappings: | ||
properties: | ||
phrase: | ||
type: icu_collation_keyword | ||
language: tr | ||
strength: primary | ||
|
||
- synopsis: Get mappings for index. | ||
path: /{index}/_mapping | ||
method: GET | ||
parameters: | ||
index: collated | ||
response: | ||
status: 200 | ||
payload: | ||
collated: | ||
mappings: | ||
properties: | ||
phrase: | ||
type: icu_collation_keyword | ||
language: tr | ||
strength: primary | ||
|
||
- synopsis: Index values with ICU collation. | ||
path: /{index}/_bulk | ||
method: POST | ||
parameters: | ||
index: collated | ||
refresh: wait_for | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- { create: { _id: '1' } } | ||
- { phrase: 'I WİLL USE TURKİSH CASING' } | ||
- { create: { _id: '2' } } | ||
- { phrase: 'ı will use turkish casıng' } | ||
|
||
- synopsis: Search for values with ICU collation. | ||
path: /{index}/_search | ||
method: POST | ||
parameters: | ||
index: collated | ||
request: | ||
payload: | ||
query: | ||
term: | ||
phrase: 'I WİLL USE TURKİSH CASING' | ||
sort: | ||
- phrase | ||
- { _id: desc } | ||
response: | ||
status: 200 | ||
payload: | ||
hits: | ||
total: | ||
value: 2 | ||
hits: | ||
- _id: '2' | ||
_source: | ||
phrase: 'ı will use turkish casıng' | ||
- _id: '1' | ||
_source: | ||
phrase: 'I WİLL USE TURKİSH CASING' |