Created
March 19, 2013 05:34
-
-
Save nz/5193924 to your computer and use it in GitHub Desktop.
Drupal's apachesolr module is polling /admin/stats.jsp, which is disabled on Websolr for security reasons. This is a workaround.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Drupal_Apache_Solr_Service.php.bak 2013-03-13 15:50:28.000000000 -0700 | |
+++ Drupal_Apache_Solr_Service.php 2013-03-13 14:19:54.000000000 -0700 | |
@@ -78,7 +78,7 @@ | |
const SEARCH_SERVLET = 'select'; | |
const LUKE_SERVLET = 'admin/luke'; | |
const SYSTEM_SERVLET = 'admin/system'; | |
- const STATS_SERVLET = 'admin/stats.jsp'; | |
+ #const STATS_SERVLET = 'admin/stats.jsp'; | |
/** | |
* Server url | |
@@ -262,7 +262,7 @@ | |
* Get summary information about the Solr Core. | |
*/ | |
public function getStatsSummary() { | |
- $stats = $this->getStats(); | |
+ #$stats = $this->getStats(); | |
$summary = array( | |
'@pending_docs' => '', | |
'@autocommit_time_seconds' => '', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For others who find this: When using the search_api_solr module, the error is not fatal and you may use the search server with no code modifications. If you do want to suppress the error message, you may make similar changes to
search_api_solr/includes/solr_connection.inc
.