create_or method

On this page

create_or

Creates a logical disjunction of the specified filters.

def create_or(cls, filters):
    ...
Parameter Type Description
filters list[ISearchDocumentFilter] The search document filters.

Returns: A SearchDocumentFilter that represents the result of the disjunction of the specified filters.

Example

from groupdocs.search import RegexOptions
from groupdocs.search.options import SearchDocumentFilter

filter3 = SearchDocumentFilter.create_file_path_regular_expression(
    "Einstein", RegexOptions.IGNORE_CASE
)
filter4 = SearchDocumentFilter.create_file_extension(".doc", ".docx", ".pdf")
or_filter = SearchDocumentFilter.create_or(filter3, filter4)

See Also

On this page