Package org.apache.solr.update.processor
Class TimestampUpdateProcessorFactory
- java.lang.Object
-
- org.apache.solr.update.processor.UpdateRequestProcessorFactory
-
- org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
-
- org.apache.solr.update.processor.TimestampUpdateProcessorFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
public class TimestampUpdateProcessorFactory extends AbstractDefaultValueUpdateProcessorFactory
An update processor that adds a newly generatedDate
value of "NOW" 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
timestamp
field, a newDate
will be generated and added as the value of that field.
<processor class="solr.TimestampUpdateProcessorFactory"> <str name="fieldName">timestamp</str> </processor>
- Since:
- 4.0.0
- See Also:
Date
,CommonParams.NOW
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways
-
-
Field Summary
-
Fields inherited from class org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
fieldName
-
-
Constructor Summary
Constructors Constructor Description TimestampUpdateProcessorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateRequestProcessor
getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
-
Methods inherited from class org.apache.solr.update.processor.AbstractDefaultValueUpdateProcessorFactory
init
-
-
-
-
Method Detail
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
- Specified by:
getInstance
in classUpdateRequestProcessorFactory
-
-