this question is very similar to another post
I basically want to use the mongodb version of the sql \"like\" \'%m%\' operator
but in my situation i\'m using
In spring data mongodb, this can be done as:
Query query = new Query(); query.limit(10); query.addCriteria(Criteria.where("tagName").regex(tagName)); mongoOperation.find(query, Tags.class);