Ted Sullivan created SOLR-9558: ---------------------------------- Summary: 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
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