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_.*.