Skip to content

Commit

Permalink
add undocumented feature
Browse files Browse the repository at this point in the history
use "extra_index_settings" in build config to update index settings arbitrarily
Not recommended for use, may be removed at any time
  • Loading branch information
zcqian committed Oct 12, 2021
1 parent 7131379 commit 872b420
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions biothings/hub/dataindex/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ def enrich_mappings(self, mappings):
def enrich_settings(self, settings):
settings["number_of_shards"] = self.build_config.get("num_shards", 1)
settings["number_of_replicas"] = self.build_config.get("num_replicas", 0)
# this feature may be removed at any time
settings.update(
self.build_config.get("extra_index_settings", {})
)

def parse_backend(self):
# Support Sebastian's hub style backend URI
Expand Down

0 comments on commit 872b420

Please sign in to comment.