My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
From this stack overflow question I got this great snippet.
# Threaded function snippet
def threaded(fn):
"""To use as decorator to make a function call threaded.
Needs import
from threading import Thread"""