lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Updated] (SOLR-3495) UUID and Timestamp Update Processors
Date Wed, 30 May 2012 02:01:23 GMT


Hoss Man updated SOLR-3495:

    Attachment: SOLR-3495.patch

patch implementing 3 new UpdateProcessors, still needs javadocs...

  <updateRequestProcessorChain name="default-values">
    <processor class="solr.DefaultValueUpdateProcessorFactory">
      <str name="fieldName">processor_default_s</str>
      <str name="value">X</str>
    <processor class="solr.DefaultValueUpdateProcessorFactory">
      <str name="fieldName">processor_default_i</str>
      <int name="value">42</int>
    <processor class="solr.UUIDUpdateProcessorFactory">
      <str name="fieldName">uuid</str>
    <processor class="solr.TimestampUpdateProcessorFactory">
      <str name="fieldName">timestamp</str>

A few notes:

* Doesn't actually leverage FieldMutatingUpdateProcessorFactory - that was a silly idea on
my part since the whole point here is that there is not existing field in the SolrInputDocument
to modify.
* I didn't bother making the UUID/timestamps default to the uniqueKey field if the types made
sense - "fieldName" is mandatory for all three processors. a) it seemed like it was going
to be harder then i thought once i start looking into it. b) it doesn't gain us much for people
migrating from using defaults on these in their schema.xml, because they'll still have to
manually add these processors to their chain.  (we can always add this as an improvement later
if anyone is so inclined)
> UUID and Timestamp Update Processors
> ------------------------------------
>                 Key: SOLR-3495
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 4.0
>         Attachments: SOLR-3495.patch
> new Update Processor's to automatically add fields with new UUIDs and Timestamps to SolrInputDocuments
leveraging SOLR-2802.  Both processors should default to selecting the uniqueKey field if
it is the appropriate type.
> This is necessary for 4.0 because of SOLR-2796

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message