JsonObject query = new JsonObject()
.put("alias", "/.*" + searchKeyword + ".*/");
mongo.find("deals", query, res -> {
// error handling
if (res.succeeded()) {
for (JsonObject o : res.result()) {
cLog(o.toString());
}
} else {
res.cause().printStackTrace();
}
});
collection.find(regex("alias", ".*" + searchKeyword + ".*")).forEach(document -> {
// do something
}, (aVoid, throwable) -> {
// Next step
});
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/ccf260fe-1a98-4342-ac60-8056455284b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/CzsZx7xlW9Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/F8907E27-31B9-417D-BEC1-366722FF682D%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAM3iWQRaaEZco6EGg7JqA0yJtqMQO4K%3DTTPtsKvmvy07T1KsyA%40mail.gmail.com.
db.deals.find({"alias": { "$regex": ".*lau nuong.*"}})
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/98DE7C0F-C9E0-4621-878A-6202DDC8F316%40gmail.com.