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

Add support for custom operators to SearchDefinitionBuilder

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: 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?

      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.

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

              Created:
              Updated:
              Resolved: