MongoDB: Perform a text-search in a document field (using high-level API)
问题 It may be related to this question Basic GROUP BY statement using OPA MongoDB high level API. I want to be able to retrieve a list of documents which "name" field value contains a given string. Here's my documents list : {name: "Charles-Hugo"}, {name: "Jean Pierre"}, {name: "Pierre Dupont"}, I want to be able to only retrieve documents which name contains the "Pierre" string: Jean Pierre, and Pierre Dupont. I know this isn't possible with the MongoDB high-level API. I've looked in the low