Paper: Enterprise Search with Development for Network Management System
http://wiki.apache.org/solr/UniqueKey
in the schema.xml
<fields>
<field name="uuid" type="uuid" indexed="true" stored="true" required="true" />
</fields>
<uniqueKey>uuid</uniqueKey>
<types>
<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
</types>
in the Solrconfig.xml
updateRequestProcessorChain allows you to configure a processing chain that processes a document before indexing
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
.........
<lst name="defaults">
<str name="config">data-config.xml</str>
<str name="update.chain">uuid</str>
</lst>
</requestHandler>
<updateRequestProcessorChain name="uuid">
<processor class="solr.UUIDUpdateProcessorFactory">
<str name="fieldName">uuid</str>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>