-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query
-
(copied to CRM)
This would be a corollary to the $substr operator. I have a case where a user would like to $project a portion of the document (i.e. 200 characters) surrounding a search string to present context to the client without having to do so in the application (because that would require sending the entire document result set back to the client).
This would make MongoDB a more viable product for their use-case.
https://docs.mongodb.org/manual/reference/operator/aggregation/#string-operators
- duplicates
-
SERVER-8951 Add $findChar or $indexOf operator for strings to find position of specific character (or substring)
- Closed
- is related to
-
SERVER-11947 Add a regex expression to the aggregation language
- Closed