SolrClient::__construct Constructor for the SolrClient object &reftitle.description; public SolrClient::__construct arrayclientOptions Constructor for the SolrClient object &reftitle.parameters; clientOptions This is an array containing one of the following keys : &reftitle.examples; <methodname>SolrClient::__construct</methodname> example SOLR_SERVER_HOSTNAME, 'login' => SOLR_SERVER_USERNAME, 'password' => SOLR_SERVER_PASSWORD, 'port' => SOLR_SERVER_PORT, 'path' => SOLR_PATH_TO_SOLR, 'wt' => SOLR_PHP_NATIVE_RESPONSE_WRITER, ); $client = new SolrClient($options); $doc = new SolrInputDocument(); $doc->addField('id', 334455); $doc->addField('cat', 'Software'); $doc->addField('cat', 'Lucene'); $updateResponse = $client->addDocument($doc); ?> ]]> &example.outputs.similar; &reftitle.seealso; SolrClient::getOptions