private function getSearchMode()
    {
        $this->solrQuery->setClassName($this->className);
        if ($this->solrQuery->isConfigured()) {
            return self::SEARCHMODE_SOLR;
        }

        return self::SEARCHMODE_MONGO;
    }