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

Allow multiple text indices on one collection

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Text Search
    • Labels:
      None

      Description

      Currently there is a limitation of one text index on a collection. I would like to ask that this limitation is relaxed.

      My use case is that I have documents which have fields which have content in different languages (and there are also fields which are not translated, like creation timestamp, etc.). I would like to have a separate text index over text content for each language.

      My current workaround is to create an additional collection per language, copy into it only language specific fields, have an index there, and then when querying, first query that collection, then use $lookup to join with the main collection, and then do more queries there. But this is cumbersome and I think less efficient.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              edwin.zhou Edwin Zhou
              Reporter:
              mitar Mitar
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: