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

Remove index restriction on $or clauses for $text searches

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: