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

Allow multiple text indices on one collection

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

      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.

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

              Created:
              Updated:
              Resolved: