<BUG>HasParentFilter hasParentFilter = HasParentFilter.create(executionType, innerQuery, parentType, searchContext);searchContext.addRewrite(hasParentFilter);</BUG><CONTEXT>if (score) {ParentQuery parentQuery = new ParentQuery(searchContext, innerQuery, parentType, childTypes, childFilter);searchContext.addRewrite(parentQuery);query = parentQuery;} else {<extra_id_0>query = new ConstantScoreQuery(hasParentFilter);}query.setBoost(boost);</CONTEXT>
HasParentFilter hasParentFilter = HasParentFilter.create(innerQuery, parentType, searchContext);searchContext.addRewrite(hasParentFilter);