Skip to content

Commit 18b003d

Browse files
committed
fixed migration index modfiy call
1 parent 05955c1 commit 18b003d

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

440440
$params = $this->buildIndexMap($this->index, $settings);
441441
$params['body']['_source']['enabled'] = true;
442+
$props = $params['body']['mappings']['properties'];
443+
unset($params['body']['mappings']);
444+
$params['body']['properties'] = $props;
442445

443446
try {
444447
$response = $this->client->indices()->putMapping($params);

0 commit comments

Comments
 (0)