mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
[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…
x
Reference in New Issue
Block a user