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

Allowing import / update of a specific document using the data import handler

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.4
    • None
    • None

    Description

      There is the need that changes or new documents need to be added immediately to the Solr Index. This could easily done via the update-handler - however, when using the DataImportHandler it shouldn't be necessary to specify the data extraction for the the DataImportHandler and also for feeding it to into the update-handler. It should be centralized.

      Having to run delta query, identifying the changes, for changes where the ID's of the updated documents are already known to the application is a rather costly (in terms of database load) way to solve this.

      The attached patch allows to specify one or more query parameters for the delta-import command, named 'root-pk', which allow to specify the document(s) to be updated or added.

      Attachments

        1. 02-single-update.patch
          4 kB
          Simon Lachinger
        2. 02-single-update.patch
          3 kB
          Simon Lachinger

        Issue Links

          Activity

            People

              Unassigned Unassigned
              slachinger Simon Lachinger
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: