Fix: numeric string miss transformation. (#11025)
### What problem does this PR solve? #11024 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
b86e07088b
commit
8584d4b642
1 changed files with 7 additions and 6 deletions
|
|
@ -294,6 +294,7 @@ def meta_filter(metas: dict, filters: list[dict]):
|
||||||
def filter_out(v2docs, operator, value):
|
def filter_out(v2docs, operator, value):
|
||||||
ids = []
|
ids = []
|
||||||
for input, docids in v2docs.items():
|
for input, docids in v2docs.items():
|
||||||
|
if operator in ["=", "≠", ">", "<", "≥", "≤"]:
|
||||||
try:
|
try:
|
||||||
input = float(input)
|
input = float(input)
|
||||||
value = float(value)
|
value = float(value)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue