Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12171

Forbid two $text clauses inside query

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Querying, Text Search
    • Labels:
    • ALL

      db.test.find({
          $and: [
              { $text: { $search: "dog" } },
              { $text: { $search: "dog" } }
          ]
      })
      

            Assignee:
            rassi J Rassi
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: