Skip to content

Commit

Permalink
fixed migration index modfiy call
Browse files Browse the repository at this point in the history
  • Loading branch information
pdphilip committed Sep 2, 2022
1 parent f2be3cd commit 438d8a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DSL/Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ public function processIndexModify($settings)

$params = $this->buildIndexMap($this->index, $settings);
$params['body']['_source']['enabled'] = true;
$props = $params['body']['mappings']['properties'];
unset($params['body']['mappings']);
$params['body']['properties'] = $props;

try {
$response = $this->client->indices()->putMapping($params);
Expand Down

0 comments on commit 438d8a0

Please sign in to comment.