Пример #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)