Solr Ping request request: undefined field text

I am trying to do some work on my server, but ran into problems. When I try to execute a ping server through the admin panel, I get this error, which I believe may cause the problem:

The server detected an internal error (Ping exception thrown: undefined field text org.apache.solr.common.SolrException: Ping request thrown exception: undefined field text in org.apache.solr.handler.PingRequestHandler.handleRequestBody (PingRequestHandler.java:76) in org.apache.solr.handler.RequestHandlerBase.handleRequest (RequestHandlerBase.java:129) at org.apache.solr.core.SolrCore.execute (SolrCore.java:1376) at org.apache.solr.servlet.SolrDispatchFilter.execute ( SolrDispatchFilter.javahaps65) in org.apache.solr.servlet.SolrDispatchFilter.doFilter (SolrDispatchFilter.java:260) in org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235. org .core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) in org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) in org.apache.catalina.core.StandardCo ntextValve.invoke (StandardContextValve.java:191) in

Can someone give me some information on what might happen wrong? I am using Solr 3.6. I think this may be due to a specific "text" in schema.xml ??

This is my diagram now: https://gist.github.com/3689621

Any help would be greatly appreciated.

James

+4
source share
2 answers

Based on the error, I assume that the request defined in the / admin / ping requestHandler request searches in a field called text that you did not specify in your schema.

Here is a typical ping requestHandler section

 <requestHandler name="/admin/ping" class="solr.PingRequestHandler"> <lst name="invariants"> <str name="q">solrpingquery</str> </lst> <lst name="defaults"> <str name="qt">standard</str> <str name="echoParams">all</str> <str name="df">text</str> </lst> </requestHandler> 

Note the setting <str name="df">text<str> . This is the default field in which ping will search. You should change this to a field that is defined in your schema, perhaps a title or description based on your schema.

+14
source

Add this line to your schema.xml

 <field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/> 
+2
source

Source: https://habr.com/ru/post/1433343/


All Articles