@@ -187,7 +187,6 @@ public static ReindexResponseBuilder builder() {
187
187
public static class Failure {
188
188
189
189
@ Nullable private final String index ;
190
- @ Nullable private final String type ;
191
190
@ Nullable private final String id ;
192
191
@ Nullable private final Exception cause ;
193
192
@ Nullable private final Integer status ;
@@ -196,11 +195,10 @@ public static class Failure {
196
195
@ Nullable private final Boolean aborted ;
197
196
@ Nullable private final ElasticsearchErrorCause elasticsearchErrorCause ;
198
197
199
- private Failure (@ Nullable String index , @ Nullable String type , @ Nullable String id , @ Nullable Exception cause ,
198
+ private Failure (@ Nullable String index , @ Nullable String id , @ Nullable Exception cause ,
200
199
@ Nullable Integer status , @ Nullable Long seqNo , @ Nullable Long term , @ Nullable Boolean aborted ,
201
200
@ Nullable ElasticsearchErrorCause elasticsearchErrorCause ) {
202
201
this .index = index ;
203
- this .type = type ;
204
202
this .id = id ;
205
203
this .cause = cause ;
206
204
this .status = status ;
@@ -215,11 +213,6 @@ public String getIndex() {
215
213
return index ;
216
214
}
217
215
218
- @ Nullable
219
- public String getType () {
220
- return type ;
221
- }
222
-
223
216
@ Nullable
224
217
public String getId () {
225
218
return id ;
@@ -269,7 +262,6 @@ public static Failure.FailureBuilder builder() {
269
262
*/
270
263
public static final class FailureBuilder {
271
264
@ Nullable private String index ;
272
- @ Nullable private String type ;
273
265
@ Nullable private String id ;
274
266
@ Nullable private Exception cause ;
275
267
@ Nullable private Integer status ;
@@ -285,11 +277,6 @@ public Failure.FailureBuilder withIndex(String index) {
285
277
return this ;
286
278
}
287
279
288
- public Failure .FailureBuilder withType (String type ) {
289
- this .type = type ;
290
- return this ;
291
- }
292
-
293
280
public Failure .FailureBuilder withId (String id ) {
294
281
this .id = id ;
295
282
return this ;
@@ -326,7 +313,7 @@ public Failure.FailureBuilder withErrorCause(@Nullable ElasticsearchErrorCause e
326
313
}
327
314
328
315
public Failure build () {
329
- return new Failure (index , type , id , cause , status , seqNo , term , aborted , elasticsearchErrorCause );
316
+ return new Failure (index , id , cause , status , seqNo , term , aborted , elasticsearchErrorCause );
330
317
}
331
318
}
332
319
}
0 commit comments