如题,
QueryBuilder queryBuilder = QueryBuilders.boolQuery() .filter(BuildTerm("regionid", searchEstate.getRegionId())) .filter(BuildTerm("gscopeid", searchEstate.getGscopeId())) .filter(BuildTerm("showinweb", searchEstate.getShowAll())) .filter(BuildTerm("isdel", false))
如果有非常复杂得参数,操作起来非常麻烦,有没有更简单得方式?