### Eclipse Workspace Patch 1.0 #P apachesolr Index: SolrPhpClient/Apache/Solr/Service.php =================================================================== RCS file: /cvs/drupal/contributions/modules/apachesolr/SolrPhpClient/Apache/Solr/Service.php,v retrieving revision 1.1.2.1.2.9 diff -u -r1.1.2.1.2.9 Service.php --- SolrPhpClient/Apache/Solr/Service.php 26 Oct 2008 15:09:40 -0000 1.1.2.1.2.9 +++ SolrPhpClient/Apache/Solr/Service.php 31 Oct 2008 13:46:54 -0000 @@ -852,7 +852,7 @@ * * @throws Exception If an error occurs during the service call */ - public function search($query, $offset = 0, $limit = 10, $params = array()) + public function search($query, $offset = 0, $limit = 10, $params = array(), $search_servlet = null) { if (!is_array($params)) { @@ -880,7 +880,9 @@ // multiple foo=bar strings. This regex should always work since '=' will be urlencoded // anywhere else the regex isn't expecting it $queryString = preg_replace('/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', $queryString); - - return $this->_sendRawGet($this->_searchUrl . $this->_queryDelimiter . $queryString); + + //Enable different search request handlers + $searchUrl = $search_servlet==null ? $this->_searchUrl : $this->_constructUrl($search_servlet); + return $this->_sendRawGet($searchUrl . $this->_queryDelimiter . $queryString); } } \ No newline at end of file