mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Get/MultiGet API with no type provided and doc does not exists causes a failure, closes #1794.
This commit is contained in:
parent
d25c4cc914
commit
6ab1c9e442
@ -309,7 +309,7 @@ public class GetResult implements Streamable, Iterable<GetField>, ToXContent {
|
||||
@Override
|
||||
public void readFrom(StreamInput in) throws IOException {
|
||||
index = in.readUTF();
|
||||
type = in.readUTF();
|
||||
type = in.readOptionalUTF();
|
||||
id = in.readUTF();
|
||||
version = in.readLong();
|
||||
exists = in.readBoolean();
|
||||
@ -334,7 +334,7 @@ public class GetResult implements Streamable, Iterable<GetField>, ToXContent {
|
||||
@Override
|
||||
public void writeTo(StreamOutput out) throws IOException {
|
||||
out.writeUTF(index);
|
||||
out.writeUTF(type);
|
||||
out.writeOptionalUTF(type);
|
||||
out.writeUTF(id);
|
||||
out.writeLong(version);
|
||||
out.writeBoolean(exists);
|
||||
|
Loading…
x
Reference in New Issue
Block a user