Skip to content

Instantly share code, notes, and snippets.

@adngdb
Last active August 29, 2015 14:25
Show Gist options
  • Save adngdb/81aff0270ee18c2df05e to your computer and use it in GitHub Desktop.
Save adngdb/81aff0270ee18c2df05e to your computer and use it in GitHub Desktop.
from socorro.external.es.supersearch import SuperSearch
def get_uuids(config):
api = SuperSearch(config=config)
params = {
'signature': '=my_sig', # signature is exactly "my_sig"
'_columns': ['uuid'],
'_results_number': 100,
'_results_offset': 0,
}
res = api.get(**params)
total_number_of_matched_documents = res['total']
for row in res['hits']:
uuid = row['uuid']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment