This library can be used in integrating apache Solr with existing MySql database.
The basic usage of the library is below.
$solr = new Basicsolr('core_name');
$response = $solr->query(*:*);
print_r($response);
$solr = new Basicsolr('core_name');
$response = $solr->getColumns('document_name');
print_r($response);
to get the multiple documents from the solr you can pas the array of documents' name as an argument to getColumn method
$solr = new Basicsolr('core_name');
$response = $solr->AddnNewUserToSolrCore($resultset)
//give resultset as an argument. make sure in this method of library you have defined your document as key value pair.
$solr = new Basicsolr('core_name');
$response = $solr->updateRecord($solr_id,$doc_name,$value);
print_r($response);
$solr = new Basicsolr('core_name');
$response = $solr->deleteRecord($solr_id);
print_r($respnse);
$solr = new Basicsolr('core_name');
$response = $solr->IncrimentValue($solr_id,$doc_name,$value)
print_r($response);
Refer to Apache Solr's documentation for more details on the API.