[TEST] don't use deprecated methods in AbstractChildTestCase
This commit is contained in:
parent
c3070062db
commit
84b51fc237
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue