From cdf896ce90e74c90860675dd77538fa432470059 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Wed, 20 Nov 2024 08:11:23 +0100 Subject: [PATCH] Add missing type combinations for the operator to docs --- .../esql/expression/function/fulltext/MatchOperatorTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchOperatorTests.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchOperatorTests.java index 180f6c87f8dc0..32e9670286ef7 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchOperatorTests.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchOperatorTests.java @@ -30,10 +30,12 @@ public MatchOperatorTests(@Name("TestCase") Supplier @ParametersFactory public static Iterable parameters() { - // Have a minimal test so that we can generate the docs + // Have a minimal test so that we can generate the appropriate types in the docs List suppliers = new LinkedList<>(); addPositiveTestCase(List.of(DataType.KEYWORD, DataType.KEYWORD), suppliers); addPositiveTestCase(List.of(DataType.TEXT, DataType.TEXT), suppliers); + addPositiveTestCase(List.of(DataType.KEYWORD, DataType.TEXT), suppliers); + addPositiveTestCase(List.of(DataType.TEXT, DataType.KEYWORD), suppliers); return parameterSuppliersFromTypedData(suppliers); } }