Skip to content

Commit a23bd4a

Browse files
committed
fixed migration index modfiy call
1 parent 161cb5b commit a23bd4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DSL/Bridge.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,9 @@ public function processIndexModify($settings)
441441

442442
$params = $this->buildIndexMap($this->index, $settings);
443443
$params['body']['_source']['enabled'] = true;
444+
$props = $params['body']['mappings']['properties'];
445+
unset($params['body']['mappings']);
446+
$params['body']['properties'] = $props;
444447

445448
try {
446449
$response = $this->client->indices()->putMapping($params);

0 commit comments

Comments
 (0)