lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike <>
Subject Help with Setup
Date Thu, 26 Apr 2007 21:04:58 GMT

I've gotten SOLR installed and the admin screens working.  At this  
point I'm just trying to get my add record to be grabbed by the SOLR  
update process, but unfortunately, I'm getting a whitespace error  
that I could use some pointers on.  I've searched the site and found  
similar errors but no tips that could help me out.

paladin:/data/solr mtorgler1$ curl http://localhost:8080/solr/update  
--data-binary articles.xml
<result status="1">org.xmlpull.v1.XmlPullParserException: only  
whitespace content allowed before start tag and not a (position:  
START_DOCUMENT seen a... @1:1)
         at org.xmlpull.mxp1.MXParser.parseProlog(
         at org.xmlpull.mxp1.MXParser.nextImpl(
         at org.xmlpull.mxp1.MXParser.nextTag(
         at org.apache.solr.core.SolrCore.update(
         at org.apache.solr.servlet.SolrUpdateServlet.doPost 
         at javax.servlet.http.HttpServlet.service(
         at javax.servlet.http.HttpServlet.service(
         at org.apache.catalina.core.ApplicationFilterChain.doFilter 
         at org.apache.catalina.core.StandardWrapperValve.invoke 
         at org.apache.catalina.core.StandardContextValve.invoke 
         at org.apache.catalina.core.StandardHostValve.invoke 
         at org.apache.catalina.valves.ErrorReportValve.invoke 
         at org.apache.catalina.core.StandardEngineValve.invoke 
         at org.apache.catalina.connector.CoyoteAdapter.service 
         at org.apache.coyote.http11.Http11Processor.process 
         at org.apache.coyote.http11.Http11BaseProtocol 
         at org.apache.tomcat.util.threads.ThreadPool 


My schema.xml is pretty straight forward, I didn't modify the types  
section, and modified the fields to the following

    <field name="id" type="string" indexed="true" stored="true"/>
    <field name="storyText" type="text" indexed="true" stored="true"/>

<!-- field to use to determine and enforce document uniqueness. -->

<!-- field for the QueryParser to use when an explicit fieldname is  
absent -->

<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
<solrQueryParser defaultOperator="OR"/>

My example document at this time is a singe doc (I've tried both with  
and without xml declaration)

<field name="id">2008</field>
<field name="storyText">The Rain in Spain Falls Mainly In The Plain</ 

What else am I missing?

My Tomcat installation is 5.5.20

My SOLR info is
Solr Specification Version: 1.1.0
Solr Implementation Version: 1.1.0-incubating - Yonik - 2006-12-17  
Lucene Specification Version: nightly
Lucene Implementation Version: build 2006-11-15

java.vm.version = 1.5.0_07-87

Any and all help is appreciated and will be rewarded with a warm  
glowing feeling of accomplishment!  Thx!

View raw message