Skip to content

PatternObjectFilter

Structure Class

PatternObjectFilter dataclass

Bases: _SerdeShape

The specific filters applied to your data source content. You can filter out or include certain content.

Attributes

exclusion_filters class-attribute instance-attribute
exclusion_filters: list[str] | None = ...

A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern. If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn't crawled.

inclusion_filters class-attribute instance-attribute
inclusion_filters: list[str] | None = ...

A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern. If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn't crawled.

object_type instance-attribute
object_type: str

The supported object type or content type of the data source.