Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] allows bulk inserts on aliases (#1286)
## What does this PR do ? This PR fixes the case where a bulk operation would fail on an elasticsearch index alias. ### How should this be manually tested? ```bash #!/bin/bash set -x es_container=kuz_elasticsearch_1 es=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$es_container"):9200 kuzzle="localhost:7512" curl -XPOST $kuzzle/index/_create curl -XPUT $kuzzle/index/collection curl -d '{"actions": {"add": {"index": "index", "alias": "alias"}}}' $es/_aliases curl -H "Content-type: application/json" -d '{ "bulkData": [ {"index": {"_type": "collection", "_index": "alias"}}, {"foo": "bar"} ] }' $kuzzle/_bulk ```
- Loading branch information
1 parent
d3c0d8e
commit a95a819
Showing
3 changed files
with
45 additions
and
19 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