public class SearchDocumentFilter extends Object
Learn more
Constructor and Description |
---|
SearchDocumentFilter() |
Modifier and Type | Method and Description |
---|---|
static ISearchDocumentFilter |
createAnd(ISearchDocumentFilter... filters)
Creates logical conjunction of the specified filters.
|
static ISearchDocumentFilter |
createAttribute(String... attributes)
Creates a filter for skipping documents that do not have any value from the specified list of allowable attributes.
|
static ISearchDocumentFilter |
createFileExtension(String... extensions)
Creates filter for skipping documents that are not in the specified list of possible extensions.
|
static ISearchDocumentFilter |
createFilePathRegularExpression(String pattern)
Creates filter for skipping documents that are not match a regular expression.
|
static ISearchDocumentFilter |
createFilePathRegularExpression(String pattern,
int options)
Creates filter for skipping documents that are not match a regular expression.
|
static ISearchDocumentFilter |
createNot(ISearchDocumentFilter innerFilter)
Creates filter that has inverse logic in relation to the specified inner filter.
|
static ISearchDocumentFilter |
createOr(ISearchDocumentFilter... filters)
Creates logical disjunction of the specified filters.
|
protected static ISearchDocumentFilter |
fromArrayProtected(ArrayReader reader) |
public static ISearchDocumentFilter createFilePathRegularExpression(String pattern)
Creates filter for skipping documents that are not match a regular expression. The regular expression is applied to the full path of a document.
pattern
- The regular expression pattern.public static ISearchDocumentFilter createFilePathRegularExpression(String pattern, int options)
Creates filter for skipping documents that are not match a regular expression. The regular expression is applied to the full path of a document.
pattern
- The regular expression pattern.options
- The regular expression options.public static ISearchDocumentFilter createFileExtension(String... extensions)
Creates filter for skipping documents that are not in the specified list of possible extensions.
extensions
- The list of possible extensions.public static ISearchDocumentFilter createNot(ISearchDocumentFilter innerFilter)
Creates filter that has inverse logic in relation to the specified inner filter.
innerFilter
- The inner search document filter.public static ISearchDocumentFilter createAnd(ISearchDocumentFilter... filters)
Creates logical conjunction of the specified filters.
filters
- The search document filters.public static ISearchDocumentFilter createOr(ISearchDocumentFilter... filters)
Creates logical disjunction of the specified filters.
filters
- The search document filters.public static ISearchDocumentFilter createAttribute(String... attributes)
Creates a filter for skipping documents that do not have any value from the specified list of allowable attributes.
attributes
- The list of allowable attributes.protected static ISearchDocumentFilter fromArrayProtected(ArrayReader reader)