IndicesQueryBuilder generates the wrong query name, closes #1485.

This commit is contained in:
Shay Banon 2011-11-22 15:57:54 +02:00
parent d69aa525b9
commit 05f98634d8
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class IndicesQueryBuilder extends BaseQueryBuilder {
}
@Override protected void doXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject(CustomBoostFactorQueryParser.NAME);
builder.startObject(IndicesQueryParser.NAME);
builder.field("query");
queryBuilder.toXContent(builder, params);
builder.field("indices", indices);