com.groupdocs.search

Interfaces

Classes

Exceptions

com.groupdocs.search

Class DocumentFilter



  • public abstract class DocumentFilter
    extends Object

    Contains methods for creating document filters.

    • Constructor Detail

      • DocumentFilter

        public DocumentFilter()
    • Method Detail

      • toString

        public abstract String toString()

        Returns string representation of document filter.

        Overrides:
        toString in class Object
        Returns:
        String representation of document filter.
      • createCreationTimeLowerBound

        public static DocumentFilter createCreationTimeLowerBound(com.aspose.ms.System.DateTime lowerBound)

        Creates filter for skipping documents with creation date earlier than the lower bound.

        Parameters:
        lowerBound - The lower bound of the document creation time.
        Returns:
        A document filter by document creation time.
      • createCreationTimeUpperBound

        public static DocumentFilter createCreationTimeUpperBound(com.aspose.ms.System.DateTime upperBound)

        Creates filter for skipping documents with creation date later than the upper bound.

        Parameters:
        upperBound - The upper bound of the document creation time.
        Returns:
        A document filter by document creation time.
      • createCreationTimeRange

        public static DocumentFilter createCreationTimeRange(com.aspose.ms.System.DateTime lowerBound,
                                             com.aspose.ms.System.DateTime upperBound)

        Creates filter for skipping documents with creation date out of the specified range.

        Parameters:
        lowerBound - The lower bound of the document creation time.
        upperBound - The upper bound of the document creation time.
        Returns:
        A document filter by document creation time.
      • createModificationTimeLowerBound

        public static DocumentFilter createModificationTimeLowerBound(com.aspose.ms.System.DateTime lowerBound)

        Creates filter for skipping documents with modification date earlier than the lower bound.

        Parameters:
        lowerBound - The lower bound of the document modification time.
        Returns:
        A document filter by document modification time.
      • createModificationTimeUpperBound

        public static DocumentFilter createModificationTimeUpperBound(com.aspose.ms.System.DateTime upperBound)

        Creates filter for skipping documents with modification date later than the upper bound.

        Parameters:
        upperBound - The upper bound of the document modification time.
        Returns:
        A document filter by document modification time.
      • createModificationTimeRange

        public static DocumentFilter createModificationTimeRange(com.aspose.ms.System.DateTime lowerBound,
                                                 com.aspose.ms.System.DateTime upperBound)

        Creates filter for skipping documents with modification date out of the specified range.

        Parameters:
        lowerBound - The lower bound of the document modification time.
        upperBound - The upper bound of the document modification time.
        Returns:
        A document filter by document modification time.
      • createFileNameRegularExpression

        public static DocumentFilter createFileNameRegularExpression(String pattern)

        Creates filter for skipping documents that are not match a regular expression.

        Parameters:
        pattern - The regular expression pattern.
        Returns:
        A document filter by file name.
      • createFileNameRegularExpression

        public static DocumentFilter createFileNameRegularExpression(String pattern,
                                                     int options)

        Creates filter for skipping documents that are not match a regular expression.

        Parameters:
        pattern - The regular expression pattern.
        options - The regular expression options.
        Returns:
        A document filter by file name.
      • createFileLengthLowerBound

        public static DocumentFilter createFileLengthLowerBound(long lowerBound)

        Creates filter for skipping documents with the length less than the lower bound.

        Parameters:
        lowerBound - The lower bound of the document length.
        Returns:
        A document filter by document length.
      • createFileLengthUpperBound

        public static DocumentFilter createFileLengthUpperBound(long upperBound)

        Creates filter for skipping documents with the length greater than the upper bound.

        Parameters:
        upperBound - Upper bound of document length.
        Returns:
        A document filter by document length.
      • createFileLengthRange

        public static DocumentFilter createFileLengthRange(long lowerBound,
                                           long upperBound)

        Creates filter for skipping documents out of the specified length range.

        Parameters:
        lowerBound - The lower bound of the document length.
        upperBound - The upper bound of the document length.
        Returns:
        A document filter by document length.
      • createFileExtension

        public static DocumentFilter createFileExtension(String... extensions)

        Creates filter for skipping documents that are not in the specified list.

        Parameters:
        extensions - The list of possible extensions.
        Returns:
        A document filter by document extension.
      • createInverted

        public static DocumentFilter createInverted(DocumentFilter innerFilter)

        Inverts document filter.

        Parameters:
        innerFilter - The document filter.
        Returns:
        An inverted document filter.
      • createConjunction

        public static DocumentFilter createConjunction(DocumentFilter... filters)

        Creates logical conjunction (logical and) of the specified filters.

        Parameters:
        filters - The document filters.
        Returns:
        A document filter that represents result of conjunction of the specified filters.
      • createDisjunction

        public static DocumentFilter createDisjunction(DocumentFilter... filters)

        Creates logical disjunction (logical or) of the specified filters.

        Parameters:
        filters - The document filters.
        Returns:
        A document filter that represents result of disjunction of the specified filters.