Skip to content

Commit

Permalink
solve clash with "version" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jun 25, 2024
1 parent 4684e68 commit cbf5f09
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def fetch_data(args):
try:
json_dict = json.loads(line)
if "_index" not in json_dict:
if "_source" not in json_dict:
source_doc = json_dict
json_dict = {"_source": source_doc}
# must create index as it is not specified in the
# document
epoch = os.path.getmtime(file_path)
Expand Down

0 comments on commit cbf5f09

Please sign in to comment.