use of org.opensearch.ml.common.dataset.SearchQueryInputDataset in project ml-commons by opensearch-project.
the class IntegTestUtils method generateEmptyDataset.
// Generate empty testing dataset.
public static MLInputDataset generateEmptyDataset() {
SearchSourceBuilder searchSourceBuilder = generateSearchSourceBuilder();
searchSourceBuilder.query(QueryBuilders.matchQuery("noSuchName", ""));
return new SearchQueryInputDataset(Collections.singletonList(TESTING_INDEX_NAME), searchSourceBuilder);
}
Aggregations