Updated param name to match type
This commit is contained in:
parent
fe46227db8
commit
8057f71c1d
|
@ -154,14 +154,14 @@ public class AliasAction implements Streamable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public AliasAction filter(QueryBuilder filterBuilder) {
|
public AliasAction filter(QueryBuilder queryBuilder) {
|
||||||
if (filterBuilder == null) {
|
if (queryBuilder == null) {
|
||||||
this.filter = null;
|
this.filter = null;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
XContentBuilder builder = XContentFactory.jsonBuilder();
|
XContentBuilder builder = XContentFactory.jsonBuilder();
|
||||||
filterBuilder.toXContent(builder, ToXContent.EMPTY_PARAMS);
|
queryBuilder.toXContent(builder, ToXContent.EMPTY_PARAMS);
|
||||||
builder.close();
|
builder.close();
|
||||||
this.filter = builder.string();
|
this.filter = builder.string();
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue