Skip to content

Commit

Permalink
fix text query expansion into numeric fields
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Aug 24, 2024
1 parent 19b7dcd commit 483f0dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jamesql/rewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def negate_query(self, items):
field = key
value = items[0]

if self.indexing_strategies.get(field) == "NUMERIC":
continue

result.append({field: {self.get_query_strategy(field, value): value}})

return {"not": {"or": result}}
Expand Down

0 comments on commit 483f0dc

Please sign in to comment.