[ML][Data Frame] Removes slice specification from DBQ. See #42996 (#43036) (#43055)

This commit is contained in:
Benjamin Trent 2019-06-10 13:40:55 -05:00 committed by GitHub
parent f150443d9a
commit 1ddc4c8fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -249,8 +249,7 @@ public class DataFrameTransformsConfigManager {
*/ */
public void deleteTransform(String transformId, ActionListener<Boolean> listener) { public void deleteTransform(String transformId, ActionListener<Boolean> listener) {
DeleteByQueryRequest request = new DeleteByQueryRequest() DeleteByQueryRequest request = new DeleteByQueryRequest()
.setAbortOnVersionConflict(false) //since these documents are not updated, a conflict just means it was deleted previously .setAbortOnVersionConflict(false); //since these documents are not updated, a conflict just means it was deleted previously
.setSlices(5);
request.indices(DataFrameInternalIndex.INDEX_NAME); request.indices(DataFrameInternalIndex.INDEX_NAME);
QueryBuilder query = QueryBuilders.termQuery(DataFrameField.ID.getPreferredName(), transformId); QueryBuilder query = QueryBuilders.termQuery(DataFrameField.ID.getPreferredName(), transformId);