Skip to content

Commit

Permalink
Add semantic_text to data types supported by the match function only …
Browse files Browse the repository at this point in the history
…if the SEMANTIC_TEXT_TYPE capability is enabled. (elastic#119755)
  • Loading branch information
afoucret committed Jan 8, 2025
1 parent fc012fb commit 82f2558
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,10 @@ private void checkMatchFunctionPushDown(
var analyzer = makeAnalyzer("mapping-all-types.json", new EnrichResolution());
// Check for every possible query data type
for (DataType fieldDataType : fieldDataTypes) {
if (DataType.UNDER_CONSTRUCTION.containsKey(fieldDataType)) {
continue;
}

var queryValue = randomQueryValue(fieldDataType);

String fieldName = fieldDataType == DataType.DATETIME ? "date" : fieldDataType.name().toLowerCase(Locale.ROOT);
Expand Down

0 comments on commit 82f2558

Please sign in to comment.