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

Remove index restriction on $or clauses for $text searches

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: