Skip to content

Commit

Permalink
fix strict
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Nov 19, 2024
1 parent eef9f2c commit 3b2d78a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions jamesql/rewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,12 @@ def OPERATOR(self, items):
def strict_search_query(self, items):
return {
"or": [
{
field: {
self.get_query_strategy(value=items[0]): items[0],
"strict": True,
}
for field in self.query_keys
if self.indexing_strategies.get(field) not in {"NUMERIC", "DATE"}
}
{field: {
self.get_query_strategy(value=items[0]): items[0],
"strict": True,
}}
for field in self.query_keys
if self.indexing_strategies.get(field) not in {"NUMERIC", "DATE"}
]
}

Expand Down

0 comments on commit 3b2d78a

Please sign in to comment.