You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Chantal Ackermann (JIRA)" <ji...@apache.org> on 2009/11/03 15:45:59 UTC

[jira] Commented: (SOLR-1498) RegexTransformer: sourceColName version not handling multiValued fields correctly

    [ https://issues.apache.org/jira/browse/SOLR-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773075#action_12773075 ] 

Chantal Ackermann commented on SOLR-1498:
-----------------------------------------

Tested with the current RC 1.4.0. Works fine!

> RegexTransformer: sourceColName version not handling multiValued fields correctly
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-1498
>                 URL: https://issues.apache.org/jira/browse/SOLR-1498
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4
>         Environment: Windows XP, JDK 6, Tomcat 6
> Linux (RedHat), JDK, Tomcat 5
>            Reporter: Chantal Ackermann
>            Assignee: Noble Paul
>             Fix For: 1.4
>
>         Attachments: SOLR-1498.patch
>
>
> Versions in use/compared:
> Solr 1.3
> (Nightly 5th August)
> Nightly 22nd September
> As RegexTransformer is not different between the two nightlies, the
> issue probably appeared before.
> ISSUE:
> Using RegexTransformer with the 'sourceColName' notation will not populate
> multiValued (actually containing multiple values) fields with a list but
> instead add only one value per document.
> The version with 'groupNames' does.
> worked for 1.3 (regression):
> <field column="participant" sourceColName="person" regex="([^\|]+)\|.*" />
> <field column="role" sourceColName="person"
> regex="[^\|]+\|\d+,\d+,\d+,(.*)" />
> works for nightly 22nd Sept:
> <field column="person" groupNames="participant,role"
> regex="([^\|]+)\|\d+,\d+,\d+,(.*)" />
> (Both fields are of type solr.StrField and multiValued.)
> Comparing the source code of RegexTransformer 1.3 vs. 22nd Sept, I found:
> for (Object result : results)
>          row.put(col, result);
> (lines 106-107 of transformRow() 22nd of Sept)

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