note 94464 added to solrclient.construct

From: Date: Fri, 06 Nov 2009 16:32:23 +0000
Subject: note 94464 added to solrclient.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-162457@lists.php.net to get a copy of this message
1. If your Solr server has a path, you can define this path as key "path" 's value in the options, like this: $options=array( 'hostname' => "localhost", 'port' => 8080, 'path' => "/solr/", 'login' => "admin", 'password' => "changeit" ); $client=new SolrClient($options); 2. One thing that blocks me for a while is the port should be an integer! You can not add quotes around the port value. e.g. 'port' => "8080" or 'port' => '8080' will make connecting to Solr server fails. ---- Server IP: 128.39.198.38 Probable Submitter: 158.37.70.165 ---- Manual Page -- http://www.php.net/manual/en/solrclient.construct.php Edit -- https://master.php.net/note/edit/94464 Del: integrated -- https://master.php.net/note/delete/94464/integrated Del: useless -- https://master.php.net/note/delete/94464/useless Del: bad code -- https://master.php.net/note/delete/94464/bad+code Del: spam -- https://master.php.net/note/delete/94464/spam Del: non-english -- https://master.php.net/note/delete/94464/non-english Del: in docs -- https://master.php.net/note/delete/94464/in+docs Del: other reasons-- https://master.php.net/note/delete/94464 Reject -- https://master.php.net/note/reject/94464 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162457) next »