Mongodb的经常使用语句

模糊查询  regex(".*?\\"+questionContent+".*")spa

        String questionContent = "需求";
        Query query = new Query();
        query.addCriteria(Criteria.where("demandName").regex(".*?\\"+questionContent+".*"));
        
        System.out.println(mongo.count(query, AdvTrusteeship.class));
相关文章
相关标签/搜索