public function createOrReplace($document, $options = null)
    {
        $this->assertProperties($document, ['_id', '_type'], 'createOrReplace');
        return $this->createDocument($document, 'createOrReplace', $options);
    }