@@ -479,6 +479,7 @@ public abstract static class Result {
479
479
private final SetOnce <Boolean > freeze = new SetOnce <>();
480
480
private final Mapping requiredMappingUpdate ;
481
481
private Translog .Location translogLocation ;
482
+ private InternalEngine .IndexingStrategy indexingStrategy ;
482
483
private long took ;
483
484
484
485
protected Result (Operation .TYPE operationType , Exception failure , long version , long term , long seqNo ) {
@@ -492,6 +493,10 @@ protected Result(Operation.TYPE operationType, Exception failure, long version,
492
493
}
493
494
494
495
protected Result (Operation .TYPE operationType , long version , long term , long seqNo ) {
496
+ this (operationType , version , term , seqNo , null );
497
+ }
498
+
499
+ protected Result (Operation .TYPE operationType , long version , long term , long seqNo , InternalEngine .IndexingStrategy indexingStrategy ) {
495
500
this .operationType = operationType ;
496
501
this .version = version ;
497
502
this .seqNo = seqNo ;
@@ -604,6 +609,11 @@ public static class IndexResult extends Result {
604
609
605
610
private final boolean created ;
606
611
612
+ public IndexResult (long version , long term , long seqNo , boolean created , InternalEngine .IndexingStrategy plan ) {
613
+ super (Operation .TYPE .INDEX , version , term , seqNo , plan );
614
+ this .created = created ;
615
+ }
616
+
607
617
public IndexResult (long version , long term , long seqNo , boolean created ) {
608
618
super (Operation .TYPE .INDEX , version , term , seqNo );
609
619
this .created = created ;
0 commit comments