Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Integreriting solarium in cakephp2.4

    • 0
    • 0
    • 0
    • 4
    • 0
    • 0
    • 0
    • 630
    Answer it

    I have problem with start Solarium Client, I downloaded it by Composer. I install it in Vendor When i want getting document from solr i have to creet a Client instance

    $client = new Solarium\Client($config); I Get this ERROR Error:

    Class 'Solarium' not found File: D:\wamp\www\DcSearch\app\Controller\UsersController.php I dont know what I miss:

    App::uses('HttpSocket', 'Network/Http'); App::import('Vendor','autoload',array('file'=>'solarium/vendor/autoload.php'));

    1. class UsersController extends AppController {
    2. public function find() {
    3.  
    4.  
    5. $config = array(
    6. "endpoint" => array("localhost" => array("host"=>"127.0.0.1",
    7. "port"=>"8983", "path"=>"/solr", "core"=>"demo",)
    8. ) );
    9.  
    10. $client = new Solarium/Client($config);
    11. $client->setAdapter('Solarium\Core\Client\Adapter\Http');
    12. ...................

 4 Answer(s)

  • i have this Error Class 'Solarium\Client' not found where i use include_once("/app/Vendor/solarium/vendor/autoload.php"

    include_once() [function.include]: Failed opening '/app/Vendor/solarium/vendor/autoload.php' for inclusion (include_path='D:\wamp\www\aclbake\lib;.;C:\php\pear') [APP\Controller\UsersController.php, line 46]

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: