Fix match phrase and not match phrase comparators (#71850)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Kerry Gallagher 2020-07-20 15:51:22 +01:00 committed by GitHub
parent 6c3b900d11
commit 11182c8ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,8 @@ const criteriaSchema = schema.object({
schema.literal(Comparator.NOT_EQ),
schema.literal(Comparator.MATCH),
schema.literal(Comparator.NOT_MATCH),
schema.literal(Comparator.MATCH_PHRASE),
schema.literal(Comparator.NOT_MATCH_PHRASE),
]),
value: schema.oneOf([schema.number(), schema.string()]),
});