Skip to content

discoverygarden/islandora_drupal_dataimporthandler_notifier

Repository files navigation

Islandora Drupal Solr DataImportHandler Notifier

Introduction

Causes selected Solr DataImportHandler to perform a 'delta-import' when node content is created or updated.

Requirements

This module requires the following modules/libraries:

Installation

Install as usual, see this for further information.

Configuration

We assume that a handler has already been configured in Solr... For the basic-solr-config, one should simply be able to uncomment the request handler definition in the solrconfig.xml (and likely restart Solr).

Enable the relevant DataImportHandlers as necessary as admin/islandora/search/islandora_solr/drupal_notifier.

For an additional ensurance of index consistency, it may be desirable to add a cron job to regularly make the DataImportHandler poll Drupal. Drupal uses DB transactions when saving node content, so we have to somehow make trigger to Solr after the DB is actually updated. Additionally, if an import is already in progress, it is not clearly specified what will happen; assuming the command will be ignored, it is recommended to add a cron job like the following to ensure eventual consistency:

# Make Solr's DataImportHandler poll Drupal for updated content every 5 minutes.
*/5 * * * * /usr/bin/wget -O /dev/null "http://localhost:8080/solr/dataimport?command=full-import&clean=false"

Troubleshooting/Issues

Having problems or solved a problem? Check out the Islandora google groups for a solution.

Maintainers/Sponsors

Current maintainers:

Development

If you would like to contribute to this module, please check out our helpful Documentation for Developers info, as well as our Developers section on the Islandora.ca site.

License

GPLv3

Releases

No releases published

Packages

No packages published

Languages