你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Charele - Cisco4321
赞同来自: act
act - 有技术热情
赞同来自:
public QueryBuilder copyQueryBuilder(QueryBuilder queryBuilder) throws IOException { SearchModule searchModule = new SearchModule(Settings.EMPTY, false, Collections.emptyList()); XContentParser parser = XContentFactory.xContent(XContentType.JSON).createParser( new NamedXContentRegistry(searchModule.getNamedXContents()), LoggingDeprecationHandler.INSTANCE, queryBuilder.toString()); return AbstractQueryBuilder.parseInnerQueryBuilder(parser); }
要回复问题请先登录或注册
有技术热情
2 个回复
Charele - Cisco4321
赞同来自: act
BoolQueryBuilder b2 = new BoolQueryBuilder();
b2.must().addAll(new ArrayList<>(b1.must()));
b2.mustNot().addAll(new ArrayList<>(b1.mustNot()));
b2.should().addAll(new ArrayList<>(b1.should()));
b2.filter().addAll(new ArrayList<>(b1.filter()));
b2.adjustPureNegative(b1.adjustPureNegative());
b2.minimumShouldMatch(b1.minimumShouldMatch());
act - 有技术热情
赞同来自:
通过看代码,已经找到方式,可以这么搞