You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds `format` and `locale` support to `runtime_script` fields,
specifically those with the `runtime_type` of `date`. Others
`runtime_type`s will return an error if provided with those parameters.
Copy file name to clipboardExpand all lines: x-pack/plugin/runtime-fields/src/main/java/org/elasticsearch/xpack/runtimefields/mapper/AbstractScriptMappedFieldType.java
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -159,4 +159,21 @@ protected final void checkAllowExpensiveQueries(QueryShardContext context) {
159
159
);
160
160
}
161
161
}
162
+
163
+
/**
164
+
* The format that this field should use. The default implementation is
165
+
* {@code null} because most fields don't support formats.
166
+
*/
167
+
protectedStringformat() {
168
+
returnnull;
169
+
}
170
+
171
+
/**
172
+
* The locale that this field's format should use. The default
173
+
* implementation is {@code null} because most fields don't
Copy file name to clipboardExpand all lines: x-pack/plugin/runtime-fields/src/main/java/org/elasticsearch/xpack/runtimefields/mapper/RuntimeScriptFieldMapper.java
Copy file name to clipboardExpand all lines: x-pack/plugin/runtime-fields/src/main/java/org/elasticsearch/xpack/runtimefields/mapper/ScriptDateMappedFieldType.java
Copy file name to clipboardExpand all lines: x-pack/plugin/runtime-fields/src/test/java/org/elasticsearch/xpack/runtimefields/mapper/RuntimeScriptFieldMapperTests.java
0 commit comments