예제 #1
0
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)
예제 #2
0
def test_files():
    data_files = files.cc_structure()
    print(data_files)