[ 
https://issues.apache.org/jira/browse/SOLR-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated SOLR-3495:
---------------------------

    Attachment: SOLR-3495.patch

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

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

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: https://issues.apache.org/jira/browse/SOLR-3495
>             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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to