node-sqlagent
node-sqlagent copied to clipboard
$text operator
Hi,
can you provide the $text operator to MongoDB find method? That would be useful to text search.
Reference: https://docs.mongodb.com/manual/text-search/
Thank you, David
Hi, i can't test it right now, but doesn't the bellow code work already?
builder.where('$text', { $search: "some text" });
Note that it requires text index on the queried collection.
Thank you, working fine!