create_or method
Leave feedback
On this page
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.
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)
- class
SearchDocumentFilter
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.