-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 4.0.3
-
Component/s: Text Search
-
Query Integration
-
Query 2020-06-01
-
(copied to CRM)
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.