mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
Delete By Query: Types are not serialized over network, causing them to be ignored, closes #580.
This commit is contained in:
parent
976d14705a
commit
fea93b7fea
@ -293,6 +293,16 @@ public class DeleteByQueryRequest extends IndicesReplicationOperationRequest {
|
|||||||
if (in.readBoolean()) {
|
if (in.readBoolean()) {
|
||||||
routing = in.readUTF();
|
routing = in.readUTF();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int size = in.readVInt();
|
||||||
|
if (size == 0) {
|
||||||
|
types = Strings.EMPTY_ARRAY;
|
||||||
|
} else {
|
||||||
|
types = new String[size];
|
||||||
|
for (int i = 0; i < size; i++) {
|
||||||
|
types[i] = in.readUTF();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeTo(StreamOutput out) throws IOException {
|
public void writeTo(StreamOutput out) throws IOException {
|
||||||
@ -313,6 +323,11 @@ public class DeleteByQueryRequest extends IndicesReplicationOperationRequest {
|
|||||||
out.writeBoolean(true);
|
out.writeBoolean(true);
|
||||||
out.writeUTF(routing);
|
out.writeUTF(routing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out.writeVInt(types.length);
|
||||||
|
for (String type : types) {
|
||||||
|
out.writeUTF(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public String toString() {
|
@Override public String toString() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user