1
votes

We are using Solr 3.5 and having the issue related to Ping Solr.

This is what defined in SolrConfig.xml for Ping

<!-- ping/healthcheck -->
  <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
    <lst name="invariants">
      <str name="q">solrpingquery</str>
    </lst>
    <lst name="defaults">
      <str name="echoParams">all</str>
    </lst>
  </requestHandler>

There is no mention about text here but still we are getting this error HTTP Status 500 - Ping query caused exception: undefined field text org.apache.solr.common.SolrException: Ping query caused exception: undefined field text at org.apache.solr.handler.PingRequestHandler.handleRequestBody(PingRequestHandler.java:76) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376) at

Any help will be greatly appreciated.

Thanks Amitesh

1
Got it working after replacing the "text" with "title" in solrconfig.xml file.Jha
I cannot see text in your ping request handler. Where exactly did you change text to title? I am facing same issuevishnu viswanath

1 Answers

1
votes

You can modify it like this:

  <!-- ping/healthcheck -->
  <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
    <lst name="invariants">
      <str name="q">solrpingquery</str>
    </lst>
    <lst name="defaults">
      <str name="echoParams">all</str>
      <str name="df">a field that is defined in your schema</str>
    </lst>
  </requestHandler>