Skip to content

Commit 01ccf79

Browse files
committed
update for es 8.18.0 library
1 parent 7bcced3 commit 01ccf79

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

stac_fastapi/elasticsearch/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
install_requires = [
99
"stac_fastapi_core==4.0.0a1",
10-
"elasticsearch[async]~=9.0.0",
10+
"elasticsearch[async]~=8.18.0",
1111
"uvicorn~=0.23.0",
12-
"starlette~=0.27.0",
12+
"starlette>=0.35.0,<0.36.0",
1313
]
1414

1515
extra_reqs = {
@@ -18,7 +18,7 @@
1818
"pytest-cov~=4.0.0",
1919
"pytest-asyncio~=0.21.0",
2020
"pre-commit~=3.0.0",
21-
"requests~=2.28.0",
21+
"requests>=2.32.0,<3.0.0",
2222
"ciso8601~=2.3.0",
2323
"httpx>=0.24.0,<0.28.0",
2424
],

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _es_config() -> Dict[str, Any]:
3131
# Initialize the configuration dictionary
3232
config: Dict[str, Any] = {
3333
"hosts": hosts,
34-
"headers": {"accept": "application/vnd.elasticsearch+json; compatible-with=7"},
34+
"headers": {"accept": "application/vnd.elasticsearch+json; compatible-with=8"},
3535
}
3636

3737
# Handle API key

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ async def get_all_collections(
232232
body={
233233
"sort": [{"id": {"order": "asc"}}],
234234
"size": limit,
235-
"search_after": search_after,
235+
**({"search_after": search_after} if search_after is not None else {}),
236236
},
237237
)
238238

@@ -497,7 +497,7 @@ async def execute_search(
497497
ignore_unavailable=ignore_unavailable,
498498
query=query,
499499
sort=sort or DEFAULT_SORT,
500-
search_after=search_after,
500+
**({"search_after": search_after} if search_after is not None else {}),
501501
size=size_limit,
502502
)
503503
)

stac_fastapi/opensearch/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"opensearch-py~=2.8.0",
1111
"opensearch-py[async]~=2.8.0",
1212
"uvicorn~=0.23.0",
13-
"starlette~=0.27.0",
13+
"starlette>=0.35.0,<0.36.0",
1414
]
1515

1616
extra_reqs = {
@@ -19,7 +19,7 @@
1919
"pytest-cov~=4.0.0",
2020
"pytest-asyncio~=0.21.0",
2121
"pre-commit~=3.0.0",
22-
"requests~=2.28.0",
22+
"requests>=2.32.0,<3.0.0",
2323
"ciso8601~=2.3.0",
2424
"httpx>=0.24.0,<0.28.0",
2525
],

0 commit comments

Comments
 (0)