You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to retrieve some Documents from a collection using .countDocuments() and find() when using Filters.text(): myCollection.find(Filters.text("foo")); and
myCollection.countDocuments(
new Document("text",
new Document("$search", "Foo")
.append("$caseSensitive", false)
));
com.mongodb.MongoCommandException: Command failed with error 2 (BadValue): 'unknown operator: $search' on server media-match.com:35795. The full response is {"$err": "unknown operator: $search", "errmsg": "unknown operator: $search", "code": 2, "codeName": "BadValue", "ok": 0}
Seems like the fake implementation of the Server doesn't support the $search operator.
With Filters.eq() I have the expected behavior but I would like to recover text with a case insensitive search.
Am I missing something?
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to retrieve some Documents from a collection using
.countDocuments()
andfind()
when usingFilters.text()
:myCollection.find(Filters.text("foo"));
andcom.mongodb.MongoCommandException: Command failed with error 2 (BadValue): 'unknown operator: $search' on server media-match.com:35795. The full response is {"$err": "unknown operator: $search", "errmsg": "unknown operator: $search", "code": 2, "codeName": "BadValue", "ok": 0}
Seems like the fake implementation of the Server doesn't support the
$search
operator.With
Filters.eq()
I have the expected behavior but I would like to recover text with a case insensitive search.Am I missing something?
The text was updated successfully, but these errors were encountered: