[TEST] don't use deprecated methods in AbstractChildTestCase

This commit is contained in:
javanna 2015-08-31 10:15:05 +02:00 committed by Luca Cavanna
parent c3070062db
commit 84b51fc237
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public abstract class AbstractChildTestCase extends ESSingleNodeTestCase {
QueryShardContext context = new QueryShardContext(new Index("test"), SearchContext.current().queryParserService());
XContentParser parser = XContentHelper.createParser(queryBuilder.buildAsBytes());
context.reset(parser);
return context.parseContext().parseInnerQuery();
return context.parseContext().parseInnerQueryBuilder().toQuery(context);
}
}