mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-02 13:29:06 +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());
|
QueryShardContext context = new QueryShardContext(new Index("test"), SearchContext.current().queryParserService());
|
||||||
XContentParser parser = XContentHelper.createParser(queryBuilder.buildAsBytes());
|
XContentParser parser = XContentHelper.createParser(queryBuilder.buildAsBytes());
|
||||||
context.reset(parser);
|
context.reset(parser);
|
||||||
return context.parseContext().parseInnerQuery();
|
return context.parseContext().parseInnerQueryBuilder().toQuery(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user