Skip to content

Commit

Permalink
Added the handling of elasticdump bulk requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nick committed Nov 10, 2023
1 parent 6732245 commit 9155072
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Network/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ protected function parseOrFail(array $payload): static {
// We need to keep the query parameters part in the sql queries
// as it's required for the following requests to Manticore
$path .= '?' . $urlInfo['query'];
} elseif (str_ends_with($path, '/_bulk')) {
// Convert the elastic bulk request path to the Manticore one
$path = '_bulk';
}
if (str_contains($path, '/_doc/') || str_contains($path, '/_create/')
|| str_ends_with($path, '/_doc') || str_ends_with($path, '/_create')) {
Expand Down

0 comments on commit 9155072

Please sign in to comment.