mirror of
https://github.com/d0zingcat/opensearch-orm.git
synced 2026-06-06 07:36:47 +00:00
fix: contains single match phrase
This commit is contained in:
@@ -122,7 +122,7 @@ class Operator(Enum):
|
|||||||
|
|
||||||
|
|
||||||
OPERATOR_FUNCTIONS: Dict[Operator, Callable[[str, Any], Expr]] = {
|
OPERATOR_FUNCTIONS: Dict[Operator, Callable[[str, Any], Expr]] = {
|
||||||
Operator.CONTAINS: lambda field, value: Contains(field, value),
|
Operator.CONTAINS: lambda field, value: Contains(field, [value]),
|
||||||
Operator.PREFIX: lambda field, value: MatchPhrasePrefix(field, value),
|
Operator.PREFIX: lambda field, value: MatchPhrasePrefix(field, value),
|
||||||
Operator.REGEXP: lambda field, value: RegExp(field, value),
|
Operator.REGEXP: lambda field, value: RegExp(field, value),
|
||||||
Operator.GTE: lambda field, value: Range(field, (value, None)),
|
Operator.GTE: lambda field, value: Range(field, (value, None)),
|
||||||
|
|||||||
Reference in New Issue
Block a user