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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • 4.0.3
    • None
    • Text Search
    • Query 2020-06-01

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            guanzo91@gmail.com Eric Guan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: