create_file_length_range method
Leave feedback
On this page
Creates a filter for skipping documents out of the specified document length range.
def create_file_length_range(cls, lower_bound, upper_bound):
...
| Parameter | Type | Description |
|---|---|---|
| lower_bound | int |
The lower bound of the document length. |
| upper_bound | int |
The upper bound of the document length. |
Returns: A document filter by document length.
from groupdocs.search.options import DocumentFilter
# Skip documents smaller than 100 KB and larger than 5 MB
filter3 = DocumentFilter.create_file_length_range(100 * 1024, 5 * 1024 * 1024)
print(filter3)
- class
DocumentFilter
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.