Revert changes made to IdsQueryBuilder, fixed upstream meanwhile
This commit is contained in:
parent
63c51b78b2
commit
8a87448758
|
@ -30,12 +30,7 @@ import org.elasticsearch.index.mapper.Uid;
|
||||||
import org.elasticsearch.index.mapper.internal.UidFieldMapper;
|
import org.elasticsearch.index.mapper.internal.UidFieldMapper;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Arrays;
|
import java.util.*;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A query that will return only documents matching specific ids (and a type).
|
* A query that will return only documents matching specific ids (and a type).
|
||||||
|
@ -133,14 +128,14 @@ public class IdsQueryBuilder extends AbstractQueryBuilder<IdsQueryBuilder> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected IdsQueryBuilder doReadFrom(StreamInput in) throws IOException {
|
protected IdsQueryBuilder doReadFrom(StreamInput in) throws IOException {
|
||||||
IdsQueryBuilder idsQueryBuilder = new IdsQueryBuilder(in.readOptionalStringArray());
|
IdsQueryBuilder idsQueryBuilder = new IdsQueryBuilder(in.readStringArray());
|
||||||
idsQueryBuilder.addIds(in.readStringArray());
|
idsQueryBuilder.addIds(in.readStringArray());
|
||||||
return idsQueryBuilder;
|
return idsQueryBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doWriteTo(StreamOutput out) throws IOException {
|
protected void doWriteTo(StreamOutput out) throws IOException {
|
||||||
out.writeOptionalStringArray(types);
|
out.writeStringArray(types);
|
||||||
out.writeStringArray(ids.toArray(new String[ids.size()]));
|
out.writeStringArray(ids.toArray(new String[ids.size()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue