Unregister Documents

Ensure that every possible path through your dataflow ends with an UnregisterDocument processor. For example, you might add an UnregisterDocument processor after your PutIDOL indexer, so that documents are unregistered after they are indexed.

NOTE: Every path must end with an UnregisterDocument processor. This means that you must not auto-terminate a relationship from any processor. For example, FlowFiles from the failed relationship of all processors must reach an UnregisterDocument processor.

To unregister documents

  1. Add a processor, by dragging the processor icon from the components toolbar to the canvas.

    The Add Processor dialog box opens.

  2. In the Source list, click idol.nifi.

    The list of processors is filtered to those that are provided in the NiFi Ingest distribution.

  3. Select the UnregisterDocument processor and click ADD.

    The processor is added to the canvas.

  4. Connect the processor at a suitable point in your dataflow (for example, after the PutIDOL processor).

  5. Right-click the UnregisterDocument processor and click Configure.

    The Configure Processor dialog box opens.

  6. Click the Properties tab.
  7. Set the Document Registry Service property to the name of the service that you created in Add a Document Registry Service.
  8. Click the Settings tab.
  9. In the Automatically Terminate Relationships area, select the success check box.
  10. Click APPLY.