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

Remove index restriction on $or clauses for $text searches

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Right now, the docs say that $text searches have the following restriction:

      "To use a $text query in an $or expression, all clauses in the $or array must be indexed."

      To get around this restriction, you have to do two separate queries and merge them together. This complicates things unnecessarily. Why is this restriction there? I propose it be removed.

            Assignee:
            Unassigned Unassigned
            Reporter:
            fresheneesz Billy Tetrud
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: