Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22104

$instr function to locate position of a "pattern" within a "string"

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
    • Case:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              shakir.sadikali Shakir Sadikali
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: