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

Stop unconditionally throwing an error when a text search language is unsupported

    • Query Integration
    • Query 2020-06-01

      Context: https://stackoverflow.com/questions/61418548

      I receive language codes from twitch.tv, and store in mongodb. I'd like to utilize text search on supported languages. For unsupported languages, I'd like mongo to just ignore it, instead of throwing an error. This way, I can use one field to store the language code.

      Currently, it seems like I have to detect if mongo supports a lang, if not, I have to store it in another field. So now every document requires 2 fields, `language` for supported langs, and `language2` for unsupported langs. This is an ugly hack and I'd like a better solution.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            guanzo91@gmail.com Eric Guan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: