def create_new_index(index_name=None):
 if (index_name is None):
  index_name = BaseSearchIndexer.get_index_alias()
 config = {'mappings': get_mappings(), 'settings': {'index': INDEX_SETTINGS}}
 create_index(index_name, config)

def create_new_index ( index_name = None ) : if ( index_name is None ) : index_name = BaseSearchIndexer . get_index_alias ( ) config = { 'mappings' : get_mappings ( ) , 'settings' : { 'index' : INDEX_SETTINGS } } create_index ( index_name , config )
create a new index for search-related documents in es .