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

DataImportHandler does not import multiple documents specified in db-data-config.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.3, 1.4
    • None
    • None

    Description

      In our system we have multiple kinds of items that need to be indexed. In the database, they are represented as 'one table per concrete class'. We are using the DataImportHandler to automatically create an index from our database. The db-data-config.xml file that we are using contains two 'Document' elements: one for each class of item that we are indexing.

      Expected behavior: the DataImportHandler imports items for each 'Document' tag defined in the configuration file
      Actual behavior: the DataImportHandler stops importing it completes indexing of the first document

      I am attaching a patch, with a unit test that verifies the correct behavior, it should apply against the trunk without problems. I can also supply a patch against the 1.3 branch if you would like.

      Attachments

        Activity

          People

            Unassigned Unassigned
            camerooni Cameron Pope
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: