Skip to content

Commit a005607

Browse files
committed
fixed migration index modfiy call
1 parent b265484 commit a005607

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
@@ -436,6 +436,9 @@ public function processIndexModify($settings)
436436

437437
$params = $this->buildIndexMap($this->index, $settings);
438438
$params['body']['_source']['enabled'] = true;
439+
$props = $params['body']['mappings']['properties'];
440+
unset($params['body']['mappings']);
441+
$params['body']['properties'] = $props;
439442

440443
try {
441444
$response = $this->client->indices()->putMapping($params);

0 commit comments

Comments
 (0)