From 920970f59cb6fdb1fc06a365809384ae32919e07 Mon Sep 17 00:00:00 2001 From: Luca Frost Date: Sun, 3 Jul 2022 21:37:51 +0400 Subject: [PATCH] More changed to resolve _type issue --- elasticsearch_loader/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch_loader/__init__.py b/elasticsearch_loader/__init__.py index e215e60..aa7d80e 100755 --- a/elasticsearch_loader/__init__.py +++ b/elasticsearch_loader/__init__.py @@ -79,7 +79,7 @@ def log(sevirity, msg): @click.option('--update', default=False, is_flag=True, help='Merge and update existing doc instead of overwrite') @click.option('--progress', default=False, is_flag=True, help='Enable progress bar - ' 'NOTICE: in order to show progress the entire input should be collected and can consume more memory than without progress bar') -@click.option('--type', help='Docs type. TYPES WILL BE DEPRECATED IN APIS IN ELASTICSEARCH 7, AND COMPLETELY REMOVED IN 8.', required=True, default='_doc') +# @click.option('--type', help='Docs type. TYPES WILL BE DEPRECATED IN APIS IN ELASTICSEARCH 7, AND COMPLETELY REMOVED IN 8.', required=False, default='_doc') @click.option('--id-field', help='Specify field name that be used as document id') @click.option('--as-child', default=False, is_flag=True, help='Insert _parent, _routing field, ' 'the value is same as _id. Note: must specify --id-field explicitly')