lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tomblin <ptomb...@xcski.com>
Subject Re: Ok, that didn't work
Date Sat, 31 Oct 2009 14:45:18 GMT
The add tag isn't part of the document.  Is there a way to feed the
actual documents without adding tags that aren't part of the schema to
them?

On Sat, Oct 31, 2009 at 10:43 AM, Yonik Seeley
<yonik@lucidimagination.com> wrote:
> Hmmm... perhaps you're missing the <add> tag around the <doc>?
>
> -Yonik
> http://www.lucidimagination.com
>
>
>
> On Sat, Oct 31, 2009 at 10:37 AM, Paul Tomblin <ptomblin@xcski.com> wrote:
>> I was looking at the script in example/exampledocs to feed documents
>> to the server.
>>
>> Just to see if it was possible, I took one of the documents that I've
>> previously indexed using SolrJ, and I tried to feed it directly to the
>> Solr server using the following command:
>>
>> curl http://localhost:8697/solrChunk/nutch/update --data-binary
>> @filename.xml -H 'Content-type:text/xml; charset=utf-8'
>>
>> And this is what I got back:
>>
>> <html><head><title>Apache Tomcat/6.0.10 - Error
>> report</title><style><!--H1
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
>> H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
>> H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
>> BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
>> B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
>> P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
>> {color : black;}A.name {color : black;}HR {color :
>> #525D76;}--></style> </head><body><h1>HTTP Status 500
- null
>>
>> java.lang.NullPointerException
>>        at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:138)
>>        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
>>        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
>>        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>>        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
>>        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>>        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
>>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
>>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>>        at java.lang.Thread.run(Thread.java:619)
>> </h1><HR size="1" noshade="noshade"><p><b>type</b>
Status
>> report</p><p><b>message</b> <u>null
>>
>> java.lang.NullPointerException
>>        at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:138)
>>        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
>>        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
>>        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>>        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
>>        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>>        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
>>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
>>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>>        at java.lang.Thread.run(Thread.java:619)
>> </u></p><p><b>description</b> <u>The server encountered
an internal error (null
>>
>> java.lang.NullPointerException
>>        at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:138)
>>        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
>>        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
>>        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>>        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
>>        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>>        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
>>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
>>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>>        at java.lang.Thread.run(Thread.java:619)
>> ) that prevented it from fulfilling this request.</u></p><HR size="1"
>> noshade="noshade"><h3>Apache Tomcat/6.0.10</h3></body></html>
>>
>> --
>> http://www.linkedin.com/in/paultomblin
>> http://careers.stackoverflow.com/ptomblin
>>
>



-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin

Mime
View raw message