lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dotan Cohen <>
Subject Solr unique key can't be blank
Date Wed, 12 Sep 2012 14:06:49 GMT
Consider this simple schema:

<?xml version="1.0" encoding="UTF-8"?>
<schema name="uuidTest" version="0.1">
		<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
		<field name="id" type="uuid" indexed="true" stored="true" required="true"/>

When trying to upload it to Websolr I am getting this error:
Solr unique key can't be blank

I also tried adding this element to the XML, after </fields>:

However this did not help. What could be the issue? I The code is
taken verbatim from this page:

Note that this is on a Solr 4 Alpha index. Thanks.

Dotan Cohen

View raw message