class BaseDaoESImp implements BaseDao {

    protected void appendBase(BoolQueryBuilder boolQueryBuilder, List<String> list, List<String> notList, String field)
    {
        //single choice in inapp: pdas or exclude_pdas, installed or uninstalled
        if (!CommonUtil.isEmpty(list) || !CommonUtil.isEmpty(notList))
        {
            BoolQueryBuilder query = new BoolQueryBuilder();
            if (list != null) //deal with pdas/installed
            {
                for (String item : list)
                {
                    MatchPhraseQueryBuilder _query = new MatchPhraseQueryBuilder(field, item);
                    query = query.should(_query);
                }
                boolQueryBuilder.must(query);
            }

            if (notList != null) //deal with exclude_pdas/uninstalled
            {
                for (String item : notList)
                {
                    MatchPhraseQueryBuilder _query = new MatchPhraseQueryBuilder(field, item);
                    query = query.should(_query);
                }
                boolQueryBuilder.mustNot(query);
            }
        }
    }

    public  BaseDaoESImp();
    public  BaseDaoESImp(Properties properties);

}