예제 #1
0
def create_new_index(index=None, config=None):
    if config is None:
        config = {}
    if index is None:
        index = get_alias()
    config['mappings'] = get_mappings()
    create_index(index, config)
예제 #2
0
def create_new_index(index=None, config=None):
    if config is None:
        config = {}
    if index is None:
        index = get_alias()
    config['mappings'] = get_mappings()
    create_index(index, config)
예제 #3
0
def create_new_index(index=None, config=None):
    if config is None:
        config = {}
    if index is None:
        index = get_alias()
    config['settings'] = {'index': INDEX_SETTINGS}
    config['mappings'] = get_mappings()
    create_index(index, config)
예제 #4
0
def create_new_index(index=None, config=None):
    if config is None:
        config = {}
    if index is None:
        index = get_alias()
    config['settings'] = {'index': INDEX_SETTINGS}
    config['mappings'] = get_mappings()
    create_index(index, config)
예제 #5
0
def create_new_index(index=None, config=None):
    if config is None:
        config = {}
    if index is None:
        index = get_alias()
    config["settings"] = {"index": INDEX_SETTINGS}
    config["mappings"] = get_mappings()
    create_index(index, config)