Skip to content

Extras: Test Solr Response script

Marcus Emmanuel Barnes edited this page Dec 12, 2016 · 1 revision

The testSolrResponse.php script is a helper script to help determine if the Solr is communicating properly with the Oral Histories Solution Pack. This may be helpful when investigating issues with your installation. Place this entire script within an Execute PHP code block in your Islandora instance. For a production site, this block should be configured to be limited to admin users and to specific page. Typically once does not include PHP tags when added PHP code into Execute PHP code blocks.

To configure the script, update the $pid, $tiers, $speaker and $url variables as appropriate to your installation.

On success you should see a var_dump of the Solr JSON response that will include details of the transcript. On failure an error logged or a var_dump of empty JSON response is returned.

If you get an empty response or error, first double check that the values of $pid, $tiers, $speaker, and $url are valid.