Skip to content

Commit

Permalink
Merge branch 'master' into 0.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Aug 17, 2021
2 parents 976c5fb + cc9b915 commit 213c833
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions biothings/hub/dataindex/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ def __init__(self, build_doc, indexer_env, index_name):

# -----------dest-----------

# https://elasticsearch-py.readthedocs.io/en/v7.12.0/api.html#elasticsearch.Elasticsearch
# https://elasticsearch-py.readthedocs.io/en/v7.12.0/helpers.html#elasticsearch.helpers.bulk
self.es_client_args = indexer_env.get("args", {})
self.es_blkidx_args = indexer_env.get("bulk", {})
# [1] https://elasticsearch-py.readthedocs.io/en/v7.12.0/api.html#elasticsearch.Elasticsearch
# [2] https://elasticsearch-py.readthedocs.io/en/v7.12.0/helpers.html#elasticsearch.helpers.bulk
self.es_client_args = indexer_env.get("args", {}) # See [1] for available args
self.es_blkidx_args = indexer_env.get("bulk", {}) # See [2] for available args
self.es_index_name = index_name or _build_doc.target_name
self.es_index_settings = IndexSettings(deepcopy(DEFAULT_INDEX_SETTINGS))
self.es_index_mappings = IndexMappings(deepcopy(DEFAULT_INDEX_MAPPINGS))
Expand Down

0 comments on commit 213c833

Please sign in to comment.