Since #64374 Elasticsearch has the option to have search-time runtime fields.
ML should allow these to be used in datafeeds.
The most obvious way to do it seems to be to add an optional runtime_mappings section to the datafeed config with the same structure as the runtime_mappings section of searches (as defined in #64374), then add this into the search the datafeed does when getting input data.