Skip to content

Commit

Permalink
Merge pull request #545 from kewubenduben/patch-1
Browse files Browse the repository at this point in the history
Update examples.rst
  • Loading branch information
untergeek committed Feb 1, 2016
2 parents 05afe54 + e88e357 commit 4f89f76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ The resulting `_filter` dictionary will be:
client = elasticsearch.Elasticsearch()

indices = curator.get_indices(client)
_filter = curator.build_filter(kindOf='suffix', value='-prod')
_filter = curator.build_filter(
kindOf='older_than', value=5, time_unit='days',
timestring='%Y.%d.%m'
)
working_list = curator.apply_filter(indices, **_filter)

The contents of `working_list` would then only be indices matching these
Expand Down

0 comments on commit 4f89f76

Please sign in to comment.