-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support bulk ingest over PUT (#4997)
* accept bulk request over PUT * add test for bulk over put
- Loading branch information
1 parent
2da14a1
commit e38bd6f
Showing
7 changed files
with
49 additions
and
4 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
4 changes: 4 additions & 0 deletions
4
quickwit/rest-api-tests/scenarii/es_compatibility/bulk/0004-put-request.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,4 @@ | ||
method: PUT | ||
ndjson: | ||
- index: { "_index": "test-index", "_id": "1" } | ||
- message: Hello, World! |
18 changes: 18 additions & 0 deletions
18
quickwit/rest-api-tests/scenarii/es_compatibility/bulk/_setup.elasticsearch.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,18 @@ | ||
# Delete possibly remaining index | ||
method: DELETE | ||
endpoint: test-index | ||
status_code: null | ||
--- | ||
method: PUT | ||
endpoint: test-index | ||
json: { | ||
"mappings": { | ||
"properties": { | ||
"message": { | ||
"type": "text", | ||
"store": true | ||
} | ||
} | ||
} | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
quickwit/rest-api-tests/scenarii/es_compatibility/bulk/_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,17 @@ | ||
# Delete possibly remaining index | ||
method: DELETE | ||
api_root: http://localhost:7280/api/v1/ | ||
endpoint: indexes/test-index | ||
status_code: null | ||
--- | ||
method: POST | ||
api_root: http://localhost:7280/api/v1/ | ||
endpoint: indexes/ | ||
json: | ||
version: "0.7" | ||
index_id: test-index | ||
doc_mapping: | ||
field_mappings: | ||
- name: message | ||
type: text | ||
sleep_after: 3 |
3 changes: 3 additions & 0 deletions
3
quickwit/rest-api-tests/scenarii/es_compatibility/bulk/_teardown.elasticsearch.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,3 @@ | ||
method: DELETE | ||
endpoint: test-index | ||
--- |
3 changes: 3 additions & 0 deletions
3
quickwit/rest-api-tests/scenarii/es_compatibility/bulk/_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,3 @@ | ||
method: DELETE | ||
api_root: http://localhost:7280/api/v1/ | ||
endpoint: indexes/test-index |
4 changes: 2 additions & 2 deletions
4
quickwit/rest-api-tests/scenarii/sort_orders/_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,3 +1,3 @@ | ||
# # Delete index | ||
# method: DELETE | ||
# endpoint: indexes/simple | ||
method: DELETE | ||
endpoint: indexes/sortorder |