File tree Expand file tree Collapse file tree
src/plugins/data/common/search Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ type PostFlightRequestFn<TAggConfig> = (
2929 searchSource : ISearchSource ,
3030 inspectorRequestAdapter ?: RequestAdapter ,
3131 abortSignal ?: AbortSignal ,
32- searchSessionId ?: string
32+ searchSessionId ?: string ,
33+ disableShardFailureWarning ?: boolean
3334) => Promise < estypes . SearchResponse < any > > ;
3435
3536export interface AggTypeConfig <
Original file line number Diff line number Diff line change @@ -333,7 +333,8 @@ export const createOtherBucketPostFlightRequest = (
333333 searchSource ,
334334 inspectorRequestAdapter ,
335335 abortSignal ,
336- searchSessionId
336+ searchSessionId ,
337+ disableShardFailureWarning
337338 ) => {
338339 if ( ! resp . aggregations ) return resp ;
339340 const nestedSearchSource = searchSource . createChild ( ) ;
@@ -347,6 +348,7 @@ export const createOtherBucketPostFlightRequest = (
347348 nestedSearchSource . fetch$ ( {
348349 abortSignal,
349350 sessionId : searchSessionId ,
351+ disableShardFailureWarning,
350352 inspector : {
351353 adapter : inspectorRequestAdapter ,
352354 title : i18n . translate ( 'data.search.aggs.buckets.terms.otherBucketTitle' , {
Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ export class SearchSource {
511511 this ,
512512 options . inspector ?. adapter ,
513513 options . abortSignal ,
514- options . sessionId
514+ options . sessionId ,
515+ options . disableShardFailureWarning
515516 ) ;
516517 }
517518 }
You can’t perform that action at this time.
0 commit comments