Skip to content

Commit

Permalink
Merge branch 'main' of github.com:opensanctions/api
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Dec 20, 2024
2 parents cf5d56d + 3d7a592 commit ff2443b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion yente/search/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"index": {
"refresh_interval": "5s",
"auto_expand_replicas": "0-all",
"auto_expand_replicas": settings.INDEX_AUTO_REPLICAS,
"number_of_shards": settings.INDEX_SHARDS,
},
}
Expand Down
1 change: 1 addition & 0 deletions yente/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def random_cron() -> str:
_INDEX_CA_CERT = env_legacy("YENTE_INDEX_CA_PATH", "YENTE_ELASTICSEARCH_CA_PATH", "")
INDEX_CA_CERT = None if _INDEX_CA_CERT == "" else _INDEX_CA_CERT
INDEX_SHARDS = int(env_legacy("YENTE_INDEX_SHARDS", "YENTE_ELASTICSEARCH_SHARDS", "1"))
INDEX_AUTO_REPLICAS = env_str("YENTE_INDEX_AUTO_REPLICAS", "0-all")
INDEX_NAME = env_legacy("YENTE_INDEX_NAME", "YENTE_ELASTICSEARCH_INDEX", "yente")
ENTITY_INDEX = f"{INDEX_NAME}-entities"
INDEX_VERSION = env_str("YENTE_INDEX_VERSION", "011")
Expand Down

0 comments on commit ff2443b

Please sign in to comment.