For the storyText "field" element, is that wrapping only in this email
or is the source document wrapping like that as well?

/cody

On 4/26/07, Mike <[EMAIL PROTECTED]> wrote:
Greetings

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(MXParser.java:1519)
         at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
         at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
         at org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1078)
         at org.apache.solr.core.SolrCore.update(SolrCore.java:661)
         at org.apache.solr.servlet.SolrUpdateServlet.doPost
(SolrUpdateServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
         at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:613)


---------------------------------------------------

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


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

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

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

<!-- 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)

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


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
17:09:54
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!

Reply via email to