Hi,
I am new to Lucene and even newer to Solr and I am attempting to setup
Solr to fit our needs. I am using the Jan 7, 2008 build. I have updated
the schema.xml fields to reflect our preferences:
<field name="entryId" type="string" indexed="true" stored="true"
required="true"/>
<field name="title" type="string" indexed="true" stored="true"
required="true"/>
<field name="link" type="string" indexed="true" stored="false"
required="false"/>
<field name="content" type="text" indexed="true" stored="false"
required="false"/>
<field name="summary" type="text" indexed="true" stored="false"
required="false"/>
<field name="author" type="string" indexed="true" stored="false"
required="false"/>
I set <uniqueKey>entryId</uniqueKey> and set
<defaultSearchField>title</defaultSearchField> then I set these values:
<copyField source="entryId" dest="title"/>
<copyField source="title" dest="text"/>
<copyField source="link" dest="text"/>
<copyField source="content" dest="text"/>
<copyField source="summary" dest="text"/>
<copyField source="author" dest="text"/>
When I run the following :
curl http://localhost:8080/solr/update -H "Content-Type:text/xml"
--data-binary '/<add allowDups="false" overwriteCommitted="true"
overwritePending="true"><doc><field name="entryId">0001</field><field
name="title">Title</field><field name="content">It was the best of times
it was the worst of times blah blah blah</field></doc></add>'
This resulted in the following error:
The server encountered an internal error (ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
Any direction would be greatly appreciated.
Thanks in advance.