Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4928

Add support for custom operators to SearchDefinitionBuilder

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Unknown Unknown
    • None
    • None
    • Atlas Search, Builders
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

    Description

      While https://jira.mongodb.org/browse/CSHARP-4927 isn't done (and any future added operators to Atlas Search), it would be helpful to have a "Custom" operator method on SearchDefinitionBuilder that takes

      • string operatorName
      • BsonDocument properties

      and adds it to the SearchDefinition in the Filter/Must/etc as desired so we don't have to convert our entire query to BsonDocument or a JSON string.

      It would make later migration to official helpers more easy.

      Attachments

        Activity

          People

            boris.dogadov@mongodb.com Boris Dogadov
            fred.morel@onepeloton.com Fred Morel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: