Skip to content

Commit

Permalink
Adjust recent changes to ES bulks/timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Sep 26, 2024
1 parent 594156c commit b91fdf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tekst-API/tekst/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class ElasticsearchConfig(ConfigSubSection):
port: int = 9200
prefix: str = "tekst"
timeout_init_s: int = 240
timeout_general_s: int = 60
timeout_general_s: int = 30
timeout_search_s: str = "30s"
max_field_mappings: int = 1000

Expand Down
2 changes: 1 addition & 1 deletion Tekst-API/tekst/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def _populate_index(
if text is None:
raise ValueError("text is None!")
client: Elasticsearch = await _get_es_client()
bulk_index_max_size = 100
bulk_index_max_size = 200
bulk_index_body = []
errors = False
target_resource_ids = [
Expand Down

0 comments on commit b91fdf7

Please sign in to comment.