def run_aggregations(): """ Run ES aggregations on finance data """ # http://elasticsearch-dsl.readthedocs.org/en/latest/search_dsl.html client = Elasticsearch() s = Search(using=client, index="finances") structure = files.cc_structure() average_agg(s, structure) stats_agg(s, structure)
def test_files(): data_files = files.cc_structure() print(data_files)