|
@@ -486,6 +486,9 @@ public class IndicesAliasesRequest extends AcknowledgedRequest<IndicesAliasesReq
|
|
|
if (false == Strings.isEmpty(searchRouting)) {
|
|
|
builder.field(SEARCH_ROUTING.getPreferredName(), searchRouting);
|
|
|
}
|
|
|
+ if (null != writeIndex) {
|
|
|
+ builder.field(IS_WRITE_INDEX.getPreferredName(), writeIndex);
|
|
|
+ }
|
|
|
builder.endObject();
|
|
|
builder.endObject();
|
|
|
return builder;
|
|
@@ -505,6 +508,7 @@ public class IndicesAliasesRequest extends AcknowledgedRequest<IndicesAliasesReq
|
|
|
+ ",routing=" + routing
|
|
|
+ ",indexRouting=" + indexRouting
|
|
|
+ ",searchRouting=" + searchRouting
|
|
|
+ + ",writeIndex=" + writeIndex
|
|
|
+ "]";
|
|
|
}
|
|
|
|
|
@@ -521,12 +525,13 @@ public class IndicesAliasesRequest extends AcknowledgedRequest<IndicesAliasesReq
|
|
|
&& Objects.equals(filter, other.filter)
|
|
|
&& Objects.equals(routing, other.routing)
|
|
|
&& Objects.equals(indexRouting, other.indexRouting)
|
|
|
- && Objects.equals(searchRouting, other.searchRouting);
|
|
|
+ && Objects.equals(searchRouting, other.searchRouting)
|
|
|
+ && Objects.equals(writeIndex, other.writeIndex);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int hashCode() {
|
|
|
- return Objects.hash(type, indices, aliases, filter, routing, indexRouting, searchRouting);
|
|
|
+ return Objects.hash(type, indices, aliases, filter, routing, indexRouting, searchRouting, writeIndex);
|
|
|
}
|
|
|
}
|
|
|
|