[ https://issues.apache.org/jira/browse/SOLR-9558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15520840#comment-15520840 ]
Shalin Shekhar Mangar commented on SOLR-9558: --------------------------------------------- So you want to transform the same column by multiple (different) templates to create a multi-valued field with each value being the output of an individual template? > DIH TemplateTransformer does not support multiple values > -------------------------------------------------------- > > Key: SOLR-9558 > URL: https://issues.apache.org/jira/browse/SOLR-9558 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: contrib - DataImportHandler > Affects Versions: 6.2 > Reporter: Ted Sullivan > Priority: Minor > Fix For: trunk > > Attachments: SOLR-9558.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > The DIH TemplateTransformer does not support multiple templates with the same > column name. Rather than creating a List of values as it should do in this > case, the value of the last <field> tag with the same column name replaces > the values of previous transforms for that column. The reason is that it uses > a single HashMap to store the transformations with a key on column name. The > fix is to detect if a column has previously been transformed within the same > field set and to create a List<Object> for that column when this occurrs. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org