org.apache.solr.update.processor
Class UUIDUpdateProcessorFactory

java.lang.Object
  extended by org.apache.solr.update.processor.UpdateRequestProcessorFactory
      extended by org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
          extended by org.apache.solr.update.processor.UUIDUpdateProcessorFactory
All Implemented Interfaces:
NamedListInitializedPlugin

public class UUIDUpdateProcessorFactory
extends AbstractDefaultValueUpdateProcessorFactory

An update processor that adds a newly generated UUID value to any document being added that does not already have a value in the specified field.

In the example configuration below, if a document does not contain a value in the id field, a new UUID will be generated and added as the value of that field.

 <processor class="solr.UUIDUpdateProcessorFactory">
   <str name="fieldName">id</str>
 </processor>
 

See Also:
UUID

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
 
Field Summary
 
Fields inherited from class org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
fieldName
 
Constructor Summary
UUIDUpdateProcessorFactory()
           
 
Method Summary
 UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
           
 
Methods inherited from class org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDUpdateProcessorFactory

public UUIDUpdateProcessorFactory()
Method Detail

getInstance

public UpdateRequestProcessor getInstance(SolrQueryRequest req,
                                          SolrQueryResponse rsp,
                                          UpdateRequestProcessor next)
Specified by:
getInstance in class UpdateRequestProcessorFactory


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.