lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Automatically generating unique key
Date Mon, 05 Sep 2011 00:07:37 GMT

: > Please does anybody know what configurations i need to have in order for
: > Solr to generate the unique key automatically? I am using solr 3.3.0. I have
: > the following fieldtype:
: >
: > <fieldType name="id_uuid" class="solr.UUIDField" indexed="true"
: > required="true"/>

For the record:

1) a unique Key field is not required to use most solr features 

2) assuming you wanted to use that "id_uuid" field type to automaticly 
generate a new uniqueKey for each doc added, you would just need to specif 
a <field/> that used that type, and had a default of "NEW" (which is the 
special syntax fot the UUIDField to say it should generate a new UUID 
anytime a document is added w/o one...


View raw message