CreateFilePathRegularExpression

CreateFilePathRegularExpression(string)

Creates a filter for skipping documents that do not match a regular expression. The regular expression is applied to the full path of a document.

public static DocumentFilter CreateFilePathRegularExpression(string pattern)
Parameter Type Description
pattern String The regular expression pattern.

Return Value

A document filter by file name.

Remarks

If the expression does not finish matching the path of a file within its time limit, the file is skipped: a new file is not added, and an indexed file is neither updated nor deleted. The other files are processed, and the skipped file is reported through the ErrorOccurred event.

See Also


CreateFilePathRegularExpression(string, RegexOptions)

Creates a filter for skipping documents that do not match a regular expression. The regular expression is applied to the full path of a document.

public static DocumentFilter CreateFilePathRegularExpression(string pattern, RegexOptions options)
Parameter Type Description
pattern String The regular expression pattern.
options RegexOptions The regular expression options.

Return Value

A document filter by file name.

Remarks

If the expression does not finish matching the path of a file within its time limit, the file is skipped: a new file is not added, and an indexed file is neither updated nor deleted. The other files are processed, and the skipped file is reported through the ErrorOccurred event.

See Also