request->get (); // $connection = new \yii\db\Connection ( Yii::$app->db ); // $connection->open (); $x = ""; // the child rank $y = $rank; // the current rank for SOLR switch ($rank) { case "family" : $x = $z = "genus"; break; case "genus" : $x = "name"; $z = "species"; break; case "species" : $x = "name"; $z = "species"; break; default : $sep = "   "; break; } $config = SOLRQueryManager::getConfigColTree (); $queryTree = SOLRQueryManager::createSearchQuery ( $config ); $q = "parent_id:" . $id; $fq = null; // $fq="{!join from=parent_id to=taxonID fromIndex=colTree}"; $raw_responseTree = SOLRQueryManager::fillAndExecuteQuery ( $queryTree, $q, $fq, [ ], False ); $docsTree = $raw_responseTree->getDocuments (); // $tree = ""; echo $tree2; } }