An object group filter is a predicate that filters the objects
(data files) that will be associated with and indexed by this group.
Example:
"filter": [{"field":"key","regex":".*"}]
This example filter configures the system to apply the regex .* to the S3 keys of the objects encountered by indexing. It will consider all objects in the associated cloud storage bucket when indexing.
Example:
"filter": {
"AND": [
{"field": "key","prefix": "foo/"},
{"field": "key","regex": ".*"}
]
}
This example adds a prefix predicate. The predicates are joined with a logical AND to produce the filter. As with the first example, the filter is applied to each object key of the object group. The filter considers only objects that have a prefix of foo.
Example:
"filter": {
"OR": [
{"field": "key","prefix": "foo/"},
{"field": "key","regex": ".*"}
]
}
This example extends the previous example so that objects that have either the prefix of 'foo/' OR the key of '.*' will be indexed.