Skip to content

Commit

Permalink
added script example
Browse files Browse the repository at this point in the history
  • Loading branch information
tmushayahama committed Jan 7, 2023
1 parent f725942 commit 599aa95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index_es_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pprint
from src.config.settings import settings
from src.config.es import es
#run python3 index_es_json test_input_json
#run python3 index_es_json -m test_input_json

import logging

Expand Down Expand Up @@ -51,4 +51,8 @@ def bulk_load_streaming(directory):

if __name__ == "__main__":
in_folder = sys.argv[1]
bulk_load_parallel(in_folder)
bulk_load_parallel(in_folder)


#python3 -m src.index_es_json ../../annoq-output/HRC_03_07_19/batch2/
# python3 -m src.index_es_json ../../../annoq/batch1/

0 comments on commit 599aa95

Please sign in to comment.