lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Updated) (JIRA) <>
Subject [jira] [Updated] (SOLR-2599) FieldCopy Update Processor
Date Tue, 04 Oct 2011 23:00:34 GMT


Jan Høydahl updated SOLR-2599:

    Attachment: SOLR-2599.patch

Here's the processor. It's been in production for some time at a customer.

Sample config as follows:
<processor class="solr.FieldCopyProcessorFactory">
  <str name="source">category</str>
  <str name="dest">category_s</str>

To move (rename) a field:
<processor class="solr.FieldCopyProcessorFactory">
  <str name="source">LastModified</str>
  <str name="dest">last_modified</str>
  <bool name="move">true</bool>

To append to existing field:
<processor class="solr.FieldCopyProcessorFactory">
  <str name="source">lastname firstname</str>
  <str name="dest">fullname</str>
  <bool name="append">true</bool>
  <str name="append.delim">, </str>

To append as values to multivalued field, with optional size cap:
<processor class="solr.FieldCopyProcessorFactory">
  <str name="source">title body</str>
  <str name="dest">text</str>
  <bool name="multival">true</bool>
  <int name="maxChars">100</int>

> FieldCopy Update Processor
> --------------------------
>                 Key: SOLR-2599
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: update
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>         Attachments: SOLR-2599.patch
> Need an UpdateProcessor which can copy and move fields

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