Skip to content

Commit db9e533

Browse files
committed
post search
1 parent 5c63108 commit db9e533

File tree

1 file changed

+13
-1
lines changed
  • stac_fastapi/elasticsearch/stac_fastapi/elasticsearch

1 file changed

+13
-1
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/core.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,19 @@ async def get_search(
362362
async def post_search(
363363
self, search_request: BaseSearchPostRequest, **kwargs
364364
) -> ItemCollection:
365-
"""POST search catalog."""
365+
"""
366+
Perform a POST search on the catalog.
367+
368+
Args:
369+
search_request (BaseSearchPostRequest): Request object that includes the parameters for the search.
370+
kwargs: Keyword arguments passed to the function.
371+
372+
Returns:
373+
ItemCollection: A collection of items matching the search criteria.
374+
375+
Raises:
376+
HTTPException: If there is an error with the cql2_json filter.
377+
"""
366378
request: Request = kwargs["request"]
367379
base_url = str(request.base_url)
368380

0 commit comments

Comments
 (0)