mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
[ML] Enable datafeed preview with future data (elastic/x-pack-elasticsearch#949)
Original commit: elastic/x-pack-elasticsearch@7f9e450edc
This commit is contained in:
parent
38706faec7
commit
4fdcedb9f9
@ -219,7 +219,7 @@ public class PreviewDatafeedAction extends Action<PreviewDatafeedAction.Request,
|
||||
// This is important because it means the datafeed search will fail if the user
|
||||
// requesting the preview doesn't have permission to search the relevant indices.
|
||||
DataExtractorFactory dataExtractorFactory = DataExtractorFactory.create(client, datafeedWithAutoChunking.build(), job);
|
||||
DataExtractor dataExtractor = dataExtractorFactory.newExtractor(0, System.currentTimeMillis());
|
||||
DataExtractor dataExtractor = dataExtractorFactory.newExtractor(0, Long.MAX_VALUE);
|
||||
threadPool.generic().execute(() -> previewDatafeed(dataExtractor, listener));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user