Commit f93d871c by Carsten Brandt

fixed wrong method calls in elasticsearch Command

parent cc4d4933
...@@ -6,6 +6,7 @@ use yii\helpers\StringHelper; ...@@ -6,6 +6,7 @@ use yii\helpers\StringHelper;
/** /**
* @var yii\web\View $this * @var yii\web\View $this
* @var array $types
* @var string $content * @var string $content
*/ */
......
...@@ -95,7 +95,7 @@ class Command extends Component ...@@ -95,7 +95,7 @@ class Command extends Component
*/ */
public function get($index, $type, $id, $options = []) public function get($index, $type, $id, $options = [])
{ {
return $this->db->get([$index, $type, $id], $options, null); return $this->db->get([$index, $type, $id], $options);
} }
/** /**
...@@ -184,7 +184,7 @@ class Command extends Component ...@@ -184,7 +184,7 @@ class Command extends Component
{ {
$body = $configuration !== null ? Json::encode($configuration) : null; $body = $configuration !== null ? Json::encode($configuration) : null;
return $this->db->put([$index], $body); return $this->db->put([$index], [], $body);
} }
/** /**
...@@ -381,7 +381,7 @@ class Command extends Component ...@@ -381,7 +381,7 @@ class Command extends Component
'mappings' => (object) $mappings, 'mappings' => (object) $mappings,
]); ]);
return $this->db->put(['_template', $name], $body); return $this->db->put(['_template', $name], [], $body);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment