-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
194 additions
and
49 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
File renamed without changes.
File renamed without changes.
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
4 changes: 0 additions & 4 deletions
4
quickwit/rest-api-tests/scenarii/qw_search_api/_teardown.quickwit.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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# Delete index | ||
method: DELETE | ||
endpoint: indexes/simple | ||
--- | ||
method: DELETE | ||
endpoint: indexes/tagged | ||
--- | ||
method: DELETE | ||
endpoint: indexes/nested |
133 changes: 133 additions & 0 deletions
133
quickwit/rest-api-tests/scenarii/tag_fields/0001_allowed_types.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,133 @@ | ||
# allowed types | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: allowedtypes | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: text1 | ||
type: text | ||
tokenizer: raw | ||
- name: number1 | ||
type: u64 | ||
- name: number2 | ||
type: i64 | ||
tag_fields: | ||
- text1 | ||
- number1 | ||
- number2 | ||
--- | ||
# tokenized not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: tokenizedtype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: text1 | ||
type: text | ||
tokenizer: default | ||
tag_fields: [text1] | ||
status_code: 400 | ||
--- | ||
# float not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: floattype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: number3 | ||
type: f64 | ||
tag_fields: [number3] | ||
status_code: 400 | ||
--- | ||
# boolean not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: booltype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: boolean | ||
type: bool | ||
tag_fields: [boolean] | ||
status_code: 400 | ||
--- | ||
# json not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: jsontype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: json1 | ||
type: json | ||
tag_fields: [json1] | ||
status_code: 400 | ||
--- | ||
# ip not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: iptype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: ip1 | ||
type: ip | ||
tag_fields: [ip1] | ||
status_code: 400 | ||
--- | ||
# bytes not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: bytestype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: bytes1 | ||
type: bytes | ||
tag_fields: [bytes1] | ||
status_code: 400 | ||
--- | ||
# bytes not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: datetype | ||
doc_mapping: | ||
mode: dynamic | ||
field_mappings: | ||
- name: date1 | ||
type: datetime | ||
input_formats: | ||
- rfc3339 | ||
tag_fields: [date1] | ||
status_code: 400 | ||
--- | ||
# dynamic not allowed | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: dynamictype | ||
doc_mapping: | ||
mode: dynamic | ||
tag_fields: [dynamic1] | ||
status_code: 400 | ||
--- |
8 changes: 4 additions & 4 deletions
8
...rii/qw_search_api/0002_negative_tags.yaml → ...enarii/tag_fields/0002_negative_tags.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
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,5 @@ | ||
method: GET | ||
engines: ["quickwit"] | ||
api_root: "http://localhost:7280/api/v1/" | ||
headers: | ||
Content-Type: application/json |
45 changes: 45 additions & 0 deletions
45
quickwit/rest-api-tests/scenarii/tag_fields/_setup.quickwit.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,45 @@ | ||
# Delete possibly remaining index | ||
method: DELETE | ||
endpoint: indexes/allowedtypes | ||
status_code: null | ||
--- | ||
method: DELETE | ||
endpoint: indexes/simple | ||
status_code: null | ||
--- | ||
method: POST | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: simple | ||
doc_mapping: | ||
field_mappings: | ||
- name: seq | ||
type: u64 | ||
- name: tag | ||
type: u64 | ||
tag_fields: ["tag"] | ||
--- | ||
method: POST | ||
endpoint: simple/ingest | ||
params: | ||
commit: force | ||
ndjson: | ||
- {"seq": 1, "tag": 1} | ||
- {"seq": 2, "tag": 2} | ||
--- | ||
method: POST | ||
endpoint: simple/ingest | ||
params: | ||
commit: force | ||
ndjson: | ||
- {"seq": 1, "tag": 1} | ||
- {"seq": 3, "tag": null} | ||
--- | ||
method: POST | ||
endpoint: simple/ingest | ||
params: | ||
commit: force | ||
ndjson: | ||
- {"seq": 4, "tag": 1} | ||
--- |
6 changes: 6 additions & 0 deletions
6
quickwit/rest-api-tests/scenarii/tag_fields/_teardown.quickwit.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,6 @@ | ||
method: DELETE | ||
endpoint: indexes/allowedtypes | ||
status_code: null | ||
--- | ||
method: DELETE | ||
endpoint: indexes/simple |