panjiwa10028 / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

How to deal with multi core with solr-php-client #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How to deal with multi core with solr-php-client?
I can checkout data with url
"http://192.168.2.58:8080/solr-multicore/core0/select/?q=solr&version=2.2&start=
0&rows=10&indent=on",but
when I use function ping(),it fetch url
"http://192.168.2.58:8080/solr-multicore/core0/admin/ping",does it mean I
have to copy ping.jsp in /solr-multicore/admin/ to
/solr-multicore/core0/admin/?
thanks

Original issue reported on code.google.com by siceb...@gmail.com on 25 Jun 2009 at 6:38

GoogleCodeExporter commented 8 years ago
As of solr 1.3 the /admin/ping path should be handled by the PingRequestHandler 
and not the deprecated 
ping.jsp that was still included in the war file.

This is routed to by the solr request filter, so I believe it should be 
available to any core (just like select and 
update handlers are) as long as it is configured correctly.

The default solr config xml has this entry for it, I'd make sure you have 
something similar:
{{{
  <!-- ping/healthcheck -->
  <requestHandler name="/admin/ping" class="PingRequestHandler">
    <lst name="defaults">
      <str name="qt">standard</str>
      <str name="q">solrpingquery</str>
      <str name="echoParams">all</str>
    </lst>
  </requestHandler>
}}}

I don't currently have a test environment with multiple cores, so unfortunately 
I can't quickly verify this - if 
you have the ping request handler properly configured and its still not working 
correctly for the individual 
cores then I'll set one up to help see what's going on.

Original comment by donovan....@gmail.com on 25 Jun 2009 at 2:20

GoogleCodeExporter commented 8 years ago
I've verified that /solr/[core]/admin/ping is available as long as the core's 
solrconfig.xml has the ping request 
handler configured.

Original comment by donovan....@gmail.com on 26 Jun 2009 at 10:47