note 113923 added to solr.examples

From: Date: Tue, 17 Dec 2013 22:22:02 +0000
Subject: note 113923 added to solr.examples
Groups: php.notes 
Request: Send a blank email to php-notes+get-197965@lists.php.net to get a copy of this message
In case someone would like to use this solrClient with solr v.4.0 and higher i've prepared my own commit function class solr { public function delete($query ) { $this->_client->deleteByQuery($query); $this->commit(); } public function commit() { $solrConfig= // array with solr host, port, path to collection (/solr/my_collection), $solrAddress = $solrConfig['hostname'] . ':' . $solrConfig['port'] . $solrConfig['path']; $output = array(); $response = exec('curl ' . $solrAddress . '/update?commit=true', $output); return $output; } } ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/solr.examples.php Edit -- https://master.php.net/note/edit/113923 Del: integrated -- https://master.php.net/note/delete/113923/integrated Del: useless -- https://master.php.net/note/delete/113923/useless Del: bad code -- https://master.php.net/note/delete/113923/bad+code Del: spam -- https://master.php.net/note/delete/113923/spam Del: non-english -- https://master.php.net/note/delete/113923/non-english Del: in docs -- https://master.php.net/note/delete/113923/in+docs Del: other reasons-- https://master.php.net/note/delete/113923 Reject -- https://master.php.net/note/reject/113923 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197965) next »