Skip to main content

DeleteRejectedEventListener

Sends deletion requests to the committer when documents are rejected or not found.

Notes

Listens for crawler rejection events (such as "not found" or "filtered") and sends a deletion request to the committer for the affected document. Useful for keeping the index clean when documents are removed from or filtered out of the source.

Examples

The following example will send deletion requests whenever a reference is not found (e.g., a 404 response from a web server) or if it was filtered out by the crawler.

class: DeleteRejectedEventListener
eventMatcher:
method: CSV
pattern: REJECTED_NOTFOUND,REJECTED_FILTER

Usage

Full configuration skeleton, with every option and its default
class: DeleteRejectedEventListener
eventMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false

Properties

PropertyTypeRequiredDefault
eventMatcherTextMatcherNoTextMatcher

Property Details

eventMatcher

A text matcher identifying which crawler events trigger a deletion request to the committer. Default matches any event matching the regular expression REJECTED_.*.