File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
elasticsearch/stac_fastapi/elasticsearch Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -286,8 +286,6 @@ async def all_collections(
286286 parsed_query = None
287287 if query is not None :
288288 try :
289- import orjson
290-
291289 parsed_query = orjson .loads (query )
292290 except Exception as e :
293291 raise HTTPException (
@@ -299,7 +297,6 @@ async def all_collections(
299297 if filter_expr is not None :
300298 try :
301299 # Only raise an error for explicitly unsupported filter languages
302- # Allow None, cql2-json, and cql2-text (we'll treat it as JSON)
303300 if filter_lang is not None and filter_lang not in [
304301 "cql2-json" ,
305302 "cql2-text" ,
Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ async def get_all_collections(
307307 elif op == "contains" :
308308 # Contains operator for arrays
309309 query_parts .append ({"term" : {field_name : value }})
310+
310311 except Exception as e :
311312 logger = logging .getLogger (__name__ )
312313 logger .error (f"Error converting query to Elasticsearch: { e } " )
You can’t perform that action at this time.
0 commit comments