Updated param name to match type

This commit is contained in:
Stephen Samuel 2015-09-02 23:07:17 +01:00
parent fe46227db8
commit 8057f71c1d
1 changed files with 3 additions and 3 deletions

View File

@ -154,14 +154,14 @@ public class AliasAction implements Streamable {
}
}
public AliasAction filter(QueryBuilder filterBuilder) {
if (filterBuilder == null) {
public AliasAction filter(QueryBuilder queryBuilder) {
if (queryBuilder == null) {
this.filter = null;
return this;
}
try {
XContentBuilder builder = XContentFactory.jsonBuilder();
filterBuilder.toXContent(builder, ToXContent.EMPTY_PARAMS);
queryBuilder.toXContent(builder, ToXContent.EMPTY_PARAMS);
builder.close();
this.filter = builder.string();
return this;