/** * Replaces one object in the type * * @param object $object * @return null **/ public function replaceOne($object) { $document = $this->transformToSphinxDocument($object); $this->index->deleteById($document['id']); $this->index->insert($document); }