public function populateIndex()
    {
        $this->buildDocumentsByManager($this->doctrine);

        if ($this->mongo) {
            $this->buildDocumentsByManager($this->mongo);
        }

        if (!empty($this->documents)) {
            $response = $this->searchProvider->addDocuments($this->documents);
            $this->documents = [];
        }
    }