I'm having trouble getting UUIDs working correctly with Sunburnt. I am receiving the error:
sunburnt.schema.SolrError: These required fields are unspecified:
['id']
I'm fairly new to Solr so I'm not completely sure where the issue lies, but I believe I have everything configured properly on the Solr end:
In my schema.xml, I have my id field and uuid fieldtype setup:
<fields>
...
<field name="id" type="uuid" indexed="true" stored="true" required="true" multiValued="false" />
...
</fields>
<uniqueKey>id</uniqueKey>
...
<types>
<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
...
</types>
Then, in solrconfig.xml I have:
<requestHandler name="/update" class="solr.UpdateRequestHandler">
<lst name="defaults">
<str name="update.chain">uuid</str>
</lst>
</requestHandler>
<!-- for generating unique ids -->
<updateRequestProcessorChain name="uuid">
<processor class="solr.UUIDUpdateProcessorFactory">
<str name="fieldName">id</str>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
I'm trying to add a document with Sunburnt like so:
solr_interface.add({'text': 'some text'})
and then I receive the above error.
If I try specifying a uuid:
solr_interface.add({'text': 'some text', 'id': '123' })
I get the error:
ValueError: badly formed hexadecimal UUID string
Any help would be greatly appreciated!
Thanks,
--
Francis Tseng
Interaction Design and Development at IDEO
supermedes.com