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>
UUID
AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
UpdateRequestProcessorFactory.RunAlways
fieldName
Constructor and Description |
---|
UUIDUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
init
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.