You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/extensions/filter.py
+13-15Lines changed: 13 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
from __future__ importannotations
14
14
15
15
importdatetime
16
+
importre
16
17
fromenumimportEnum
17
18
fromtypingimportList, Union
18
19
@@ -252,20 +253,17 @@ def to_es(arg: Arg):
252
253
raiseRuntimeError(f"unknown arg {repr(arg)}")
253
254
254
255
255
-
defcql2_like_to_es(input_string):
256
-
"""Convert arugument in CQL2 ('_' and '%') to Elasticsearch wildcard operators ('?' and '*', respectively). Handle escape characters and handle Elasticsearch wildcards directly."""
257
-
es_string=""
258
-
escape=False
256
+
defcql2_like_to_es(string):
257
+
"""Convert wildcard characters in CQL2 ('_' and '%') to Elasticsearch wildcard characters ('?' and '*', respectively). Handle escape characters and pass through Elasticsearch wildcards."""
0 commit comments