You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2007/02/23 19:05:34 UTC
Problem indexing
Hi,
This is related to SOLR-81. Things bomb when I try indexing with my probably misconfigured schema.xml:
- see it at http://www.krumpir.com/schema.xml - I added a few new fieldTypes, fields, and copyFields
- just the diff: http://www.krumpir.com/schema.xml-diff.txt
I've created a dictionary.xml file with the following content:
<add>
<doc>
<field name="word">application</field>
</doc>
</add>
I tried posting that, like this:
$ java -jar post.jar http://localhost:8983/solr/update dictionary.xml
That bombed with this:
SimplePostTool: WARNING: Unexpected response from Solr: '<result status="1">java.lang.NullPointerException
at org.apache.solr.schema.FieldType.storedToIndexed(FieldType.java:248)
at org.apache.solr.update.UpdateHandler.getIndexedId(UpdateHandler.java:134)
at org.apache.solr.update.DirectUpdateHandler2.overwriteBoth(DirectUpdateHandler2.java:380)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:236)
Does this look familiar to anyone? Anything in that schema.xml looks fishy or plain wrong?
Thanks,
Otis
Re: Problem indexing
Posted by Yonik Seeley <yo...@apache.org>.
On 2/23/07, Otis Gospodnetic <ot...@yahoo.com> wrote:
> Hi,
>
> This is related to SOLR-81. Things bomb when I try indexing with my probably misconfigured schema.xml:
> - see it at http://www.krumpir.com/schema.xml - I added a few new fieldTypes, fields, and copyFields
> - just the diff: http://www.krumpir.com/schema.xml-diff.txt
>
> I've created a dictionary.xml file with the following content:
>
> <add>
> <doc>
> <field name="word">application</field>
> </doc>
> </add>
>
> I tried posting that, like this:
> $ java -jar post.jar http://localhost:8983/solr/update dictionary.xml
>
> That bombed with this:
>
> SimplePostTool: WARNING: Unexpected response from Solr: '<result status="1">java.lang.NullPointerException
> at org.apache.solr.schema.FieldType.storedToIndexed(FieldType.java:248)
> at org.apache.solr.update.UpdateHandler.getIndexedId(UpdateHandler.java:134)
> at org.apache.solr.update.DirectUpdateHandler2.overwriteBoth(DirectUpdateHandler2.java:380)
> at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:236)
>
> Does this look familiar to anyone? Anything in that schema.xml looks fishy or plain wrong?
I think the document you are adding is missing the uniqueKeyField
-Yonik