minor change

This commit is contained in:
Jicheng Lu 2025-08-15 09:53:07 -05:00
parent a499d62fe6
commit 5c3c723945

View file

@ -523,8 +523,7 @@ public class QdrantDb : IVectorDb
{ {
var field = new FieldCondition var field = new FieldCondition
{ {
Key = f.Key, Key = f.Key
Match = new Match { Text = f.Value }
}; };
if (bool.TryParse(f.Value, out var boolVal)) if (bool.TryParse(f.Value, out var boolVal))
@ -535,6 +534,10 @@ public class QdrantDb : IVectorDb
{ {
field.Match = new Match { Integer = intVal }; field.Match = new Match { Integer = intVal };
} }
else
{
field.Match = new Match { Text = f.Value };
}
return new Condition { Field = field }; return new Condition { Field = field };
}); });