Last active
August 29, 2015 14:25
-
-
Save adngdb/81aff0270ee18c2df05e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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