Skip to content

Instantly share code, notes, and snippets.

@yodlegists
Created June 18, 2016 02:11
Show Gist options
  • Select an option

  • Save yodlegists/6384c665d3cb7cc41af5f518edb5905c to your computer and use it in GitHub Desktop.

Select an option

Save yodlegists/6384c665d3cb7cc41af5f518edb5905c to your computer and use it in GitHub Desktop.
Getting all indices prefixed with "prod_"
def get_prod_indices(client):
indices = curator.get_indices(client)
prefix_filter = curator.build_filter(kindOf="prefix", value=PROD_PREFIX)
return curator.apply_filter(items=indices, **prefix_filter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment