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

Jan Høydahl updated SOLR-2151:
------------------------------

    Attachment: SOLR-2151-solr1.4.patch

First crash-implementation, without any tests or anything. It only supports a 
mapping file similar to the synonyms.txt file format, but currently supports 
only a simple from=>to mapping. No expand, no case insensitive, etc.

The patch SOLR-2151-solr1.4.patch is against the 1.4 branch, not trunk.

Configure the UpdateProcessor like this:

{code:xml}
<processor 
class="org.apache.solr.update.processor.MappingUpdateProcessorFactory">
  <str name="inputField">myInputField</str>
  <str name="outputField">myOutputField</str>
  <str name="idField">id</str>
  <str name="fallback"></str>
  <str name="mappingFile">innbinding-sokeord_mapping.txt</str>
</processor>
{code}

> MappingUpdateProcessor
> ----------------------
>
>                 Key: SOLR-2151
>                 URL: https://issues.apache.org/jira/browse/SOLR-2151
>             Project: Solr
>          Issue Type: New Feature
>          Components: update
>            Reporter: Jan Høydahl
>         Attachments: SOLR-2151-solr1.4.patch
>
>
> Implement an UpdateProcessor which can read one field, lookup the value in a 
> dictionary and write the mapped value to another field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to