Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9558

DIH TemplateTransformer does not support multiple values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2
    • Fix Version/s: 6.3, master (7.0)
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None
    • Flags:
      Patch

      Description

      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.

      1. SOLR-9558.patch
        5 kB
        Ted Sullivan

        Activity

        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        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?

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - 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?
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 65439e261e49484edc474fd56bf4a67cf70ed038 in lucene-solr's branch refs/heads/master from Noble Paul
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=65439e2 ]

        SOLR-9558: DIH TemplateTransformerto to support multivalued fields

        Show
        jira-bot ASF subversion and git services added a comment - Commit 65439e261e49484edc474fd56bf4a67cf70ed038 in lucene-solr's branch refs/heads/master from Noble Paul [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=65439e2 ] SOLR-9558 : DIH TemplateTransformerto to support multivalued fields
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 20c3c86475f372c1183acab55599972ff7c6916f in lucene-solr's branch refs/heads/branch_6x from Noble Paul
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=20c3c86 ]

        SOLR-9558: DIH TemplateTransformerto to support multivalued fields

        Show
        jira-bot ASF subversion and git services added a comment - Commit 20c3c86475f372c1183acab55599972ff7c6916f in lucene-solr's branch refs/heads/branch_6x from Noble Paul [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=20c3c86 ] SOLR-9558 : DIH TemplateTransformerto to support multivalued fields
        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        Closing after 6.3.0 release.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - Closing after 6.3.0 release.

          People

          • Assignee:
            noble.paul Noble Paul
            Reporter:
            tedsullivan Ted Sullivan
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development