Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4972

Add `String` overloads to the SearchPath accepting SearchOperator methods

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: 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?

      Currently, to query a single Atlas Search field, one must use the SearchPath (or Iterable<SearchPath>) methods, such as:

      SearchOperator.text(fieldPath("genres"),"Drama") 

      It'd be more convenient for developers to add String overloaded methods so that this code would be:

      SearchOperator.text("genres","Drama") 

            Assignee:
            Unassigned Unassigned
            Reporter:
            erik.hatcher@mongodb.com Erik Hatcher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: