that just returns the null pointer exception.
I have checked my schema and doc:
Schema:
<field name="id" type="string" indexed="false" stored="true"/>
<field name="timestamp" type="string" indexed="true" stored="true"/>
<field name="url" type="string" indexed="false" stored="true"/>
<field name="collection" type="text_ws" indexed="true"
stored="true"/>
<field name="mimetype" type="string" indexed="true" stored="true"/>
<field name="content" type="text" indexed="true" stored="false"/>
Template:
doc = """<add>
<doc>
<field name="id">%s</field>
<field name="timestamp">%s</field>
<field name="url">%s</field>
<field name="collection">%s</field>
<field name="mimetype">%s</field>
<field name="content">%s</field>
</doc>
</add>"""
On 11 Oct 2006, at 12:19, Panayiotis Papadopoulos wrote:
How do you post the documents to solr ? Via php, jsp or smth like
that ? Then if u use curl from php or jsp or asp you can see the
error that solr returns,
in php using curl i found out the error using this...
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header); $data =
curl_exec($ch);
and then i printed $data, my schema was parsed successfully but
actually in the xml i was using variables bit different than in
schema plus there were some logical errors in the schema ...
So try to find the SOLR runtime errors using a solution like above