public function createIndex($index, $configuration = null) { $body = $configuration !== null ? Json::encode($configuration) : null; return $this->db->put([$index], [], $body); }