i use xml which i write by myself to sendUpdate,,,but error show like:
"string(1536) "ERROR:unknown field 'pname'
org.xmlpull.v1.XmlPullParserException: expected START_TAG or END_TAG not
END_DOCUMENT (position: END_DOCUMENT seen ...</doc>\r\n</add>... @20:7) at
org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1083) at
org.apache.solr.core.SolrCore.update(SolrCore.java:681) at
org.apache.solr.servlet.SolrUpdateServlet.doPost(SolrUpdateServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:473) at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at
org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(
HttpContext.java:1482) at org.mortbay.http.HttpServer.service(
HttpServer.java:909) at org.mortbay.http.HttpConnection.service(
HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(
HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(
HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(
ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(
ThreadPool.java:534) "

my xml:

$dom_string = '<add>
 <doc>
   <field name="pname">a</field>
   <field name="pdepart">a</field>
   <field name="lucene_date">a</field>

 </doc>
 <doc>
   <field name="pname">b</field>
   <field name="pdepart">b</field>
   <field name="lucene_date">b</field>

 </doc>
 <doc>
   <field name="pname">c</field>
   <field name="pdepart">c</field>
   <field name="lucene_date">c</field>

 </doc>
</add>';

Reply via email to