Validating Index Content

You can run a check to detect and correct missing data in the index using the Crawler Manager ($CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/code/command/er-crawler-manager-cli.sh|bat). It provides commands to validate the index content against 3DSpace data.

You can validate content incrementally (recommended), or as a single operation on a custom set of data.

This task shows you how to:

Use Incremental Validation

  1. Start the validation: er-crawler-manager-cli.sh validation start
  2. Monitor the validation process: er-crawler-manager-cli.sh validation status
  3. List invalid content: er-crawler-manager-cli.sh validation list-failures
  4. Recrawl all invalid content to repair your index: er-crawler-manager-cli.sh validation repair

    Note: If you need to stop a running validation process, use this command: er-crawler-manager-cli.sh validation stop

  5. Destroy the validation history: er-crawler-manager-cli.sh validation destroy
Note: You can also use the options below when starting the validation:
  --check-modified
              Validate modified
              Default: true
            --validation-cron
              Validation cron expression (Quartz)
              Default: 0 0 0 ? * SAT,SUN
            --repair-cron
              Repair of validation failures cron expression (Quartz)
            --crawl-strategy
              Custom crawl strategy to build validation dataset
            --validation-min-modification-age
              Minimum time that must elapse after an item is modified
              before it becomes eligible for validation
              Default: 300
            --validation-min-interval
              Minimum time that must elapse between two consecutive
              automatic validation runs
              Default: 600
            --repair-min-interval
              Minimum time that must elapse between two consecutive
              automatic repair runs
              Default: 600

Use Custom Validation

Start the validation and use a custom crawl strategy (.JSON file) containing the objects to validate: ./er-crawler/bin/er-crawler-manager-cli validation start --crawl-strategy er-crawler/examples/crawl/bo_maintenance_crawl_strategy.json

Access the Logs

Access the logs to follow the validation and display repair operations: $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/er-crawler/logs/er-crawler-manager-webapp/er-crawler-manager_validation.log