fix: [feed-generator] Revert back the event initial search to use the index endpoint instead of RestSearch

Relying on RestSearch was offering more flexibility than index in terms of filtering options,
however, it might introduce a significant overhead potentially leading to timeout.
feature-feedgenerator-exclude-malwares
Sami Mokaddem 2021-11-05 11:37:48 +01:00
parent 93cff2e50e
commit 820eb77cff
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def saveManifest(manifest):
if __name__ == '__main__':
misp = init()
try:
events = misp.search(metadata=True, limit=entries, **filters, pythonify=True)
events = misp.search_index(minimal=True, limit=entries, **filters, pythonify=False)
except Exception as e:
print(e)
sys.exit("Invalid response received from MISP.")