com.groupdocs.search

Interfaces

Classes

Exceptions

com.groupdocs.search

Class SearchDocumentFilter



  • public class SearchDocumentFilter
    extends Object

    Contains methods for creating search document filters.

    • Constructor Detail

      • SearchDocumentFilter

        public SearchDocumentFilter()
    • Method Detail

      • createFileNameRegularExpression

        public static ISearchDocumentFilter 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 ISearchDocumentFilter 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.
      • createFileExtension

        public static ISearchDocumentFilter createFileExtension(String... extensions)

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

        Parameters:
        extensions - List of possible extensions.
        Returns:
        A search document filter by document extension.
      • createInverted

        public static ISearchDocumentFilter createInverted(ISearchDocumentFilter innerFilter)

        Inverts search document filter.

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

        public static ISearchDocumentFilter createConjunction(ISearchDocumentFilter... filters)

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

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

        public static ISearchDocumentFilter createDisjunction(ISearchDocumentFilter... filters)

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

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