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

Unable to create dynamic fields with custom DataImportHandler transformer

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.4
    • None

    Description

      Discussion at: http://www.nabble.com/Creating-dynamic-fields-with-DataImportHandler-to19226532.html

      Dynamic fields aren't created when specified in a DataImportHandler's transformer.

      Reproducing the issue:
      I have defined a dynamic field (of type sdouble) in my schema called "_dynamic*". Inside the transformer's transformRow method, I am adding the name-value pair "_dynamicTest" and '1.0'. No errors are observed, but the data does not appear in the index after importing is complete.

      Interestingly, I can specify that same name-value pair combination in the DataImportHandler's config file, and it does appear in the index.

      Attachments

        1. SOLR-742.patch
          8 kB
          Shalin Shekhar Mangar
        2. SOLR-742.patch
          6 kB
          Noble Paul
        3. SOLR-742.patch
          10 kB
          Shalin Shekhar Mangar
        4. SOLR-742.patch
          8 kB
          Shalin Shekhar Mangar
        5. SOLR-742.patch
          3 kB
          Noble Paul
        6. SOLR-742.patch
          3 kB
          Noble Paul

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shalin Shalin Shekhar Mangar
            wojtekpia Wojtek Piaseczny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment