Add builder support for the $score aggregation stage

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Unknown
    • 5.10.0
    • Affects Version/s: None
    • Component/s: CRUD
    • Hide

      DRIVERS-3466:
      Summary of necessary driver changes

      • Add builder support for the $score aggregation stage

      Context for other referenced/linked tickets

      Show
      DRIVERS-3466 : Summary of necessary driver changes Add builder support for the $score aggregation stage Context for other referenced/linked tickets https://www.mongodb.com/docs/manual/reference/operator/aggregation/score/
    • None
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature? $score aggregation is now supported in the next driver release 
      2. Would you like the user to see examples of the syntax and/or executable code and its output?

         Aggregates.score("$rating", scoreOptions()
                              .normalization(ScoreNormalization.SIGMOID)
                              .weight(0.5)
                              .scoreDetails(true)))

      Refer to these test cases for more examples

      https://github.com/strogiyotec/mongo-java-driver/blob/bbf05d02dd74fcb9c0fa657351af5bcb3e5ef2eb/driver-core/src/test/functional/com/mongodb/client/model/AggregatesTest.java 
      3. Which versions of the driver/connector does this apply to?

      5.9.x

      Show
      1. What would you like to communicate to the user about this feature? $score aggregation is now supported in the next driver release  2. Would you like the user to see examples of the syntax and/or executable code and its output?    Aggregates.score("$rating", scoreOptions()                         .normalization(ScoreNormalization.SIGMOID)                         .weight(0.5)                         .scoreDetails(true))) Refer to these test cases for more examples https://github.com/strogiyotec/mongo-java-driver/blob/bbf05d02dd74fcb9c0fa657351af5bcb3e5ef2eb/driver-core/src/test/functional/com/mongodb/client/model/AggregatesTest.java   3. Which versions of the driver/connector does this apply to? 5.9.x
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket was split from DRIVERS-3466, please see that ticket for a detailed description.

            Assignee:
            Almas Abdrazak
            Reporter:
            TPM Jira Automations Bot
            Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: