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

Add overloads for the `compound` must/mustNot/filter/should clauses to accept a single SearchOperator

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Builders
    • None

    Description

      Currently these methods take an `Iterable<SearchOperator>`.  If there's only one such SearchOperator, it requires doing something like `.must(Arrays.asList(clause))`.  It would be more convenient for developers to have overloaded methods that take a single SearchOperator instead of an Iterable.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: