File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
test/framework/src/main/java/org/elasticsearch/datageneration/datasource
x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/qa Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1414
1515import java .util .List ;
1616import java .util .Map ;
17- import java .util .Set ;
1817import java .util .stream .Collectors ;
1918
2019public class MultifieldAddonHandler implements DataSourceHandler {
@@ -30,7 +29,7 @@ public class MultifieldAddonHandler implements DataSourceHandler {
3029 FieldType .MATCH_ONLY_TEXT ,
3130 FieldType .WILDCARD
3231 );
33- public static MultifieldAddonHandler ALL_STRING_TYPES = new MultifieldAddonHandler (
32+ public static MultifieldAddonHandler STRING_TYPE_HANDLER = new MultifieldAddonHandler (
3433 STRING_TYPES .stream ().collect (Collectors .toMap (t -> t , t -> STRING_TYPES .stream ().filter (s -> s != t ).toList ()))
3534 );
3635
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public DataSourceResponse.FieldTypeGenerator.FieldTypeInfo get() {
107107 });
108108 }
109109 }))
110- .withDataSourceHandlers (List .of (MultifieldAddonHandler .ALL_STRING_TYPES ));
110+ .withDataSourceHandlers (List .of (MultifieldAddonHandler .STRING_TYPE_HANDLER ));
111111
112112 // Customize builder if necessary
113113 builderConfigurator .accept (specificationBuilder );
You can’t perform that action at this time.
0 commit comments