lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dotan Cohen <dotanco...@gmail.com>
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">
	<types>
		<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
	</types>
	<fields>
		<field name="id" type="uuid" indexed="true" stored="true" required="true"/>
	</fields>
</schema>

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>:
<uniqueKey>id</uniqueKey>

However this did not help. What could be the issue? I The code is
taken verbatim from this page:
http://wiki.apache.org/solr/UniqueKey

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

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

Mime
View raw message