|
|
@@ -5,7 +5,9 @@ $random = rand(); |
|
|
|
|
|
|
|
// Assemble a query string to send to Solr. This uses the Solr hostname from config.env. Solr's query syntax can be found at many sites including https://lucene.apache.org/solr/guide/6_6/the-standard-query-parser.html |
|
|
|
// This query retrieves only the bib identifier field for records which satisfy the search query |
|
|
|
$solrurl = 'http://host.docker.internal:8983/solr/epo_data/select?q.op=OR&q=*%3A*&wt=json&sort=random_' . $random . '%20asc'; |
|
|
|
#$solrurl = 'http://host.docker.internal:8983/solr/epo_data/select?q.op=OR&q=*%3A*&wt=json&sort=random_' . $random . '%20asc'; |
|
|
|
$solrurl = 'http://' . $_ENV["SOLR_HOSTNAME"] . ':' . $_ENV["SOLR_PORT"] . '/solr/' . $_ENV["SOLR_CORE"] . '/select?q.op=OR&q=*%3A*&wt=json&sort=random_' . $random . '%20asc'; |
|
|
|
|
|
|
|
|
|
|
|
// Perform Curl request on the Solr API |
|
|
|
$ch = curl_init(); |