Solr uses the langid UpdateRequestProcessor to identify languages and then map from text to the language-specific field while indexing.
There are two implementations provided by Solr for language detection:
- Tika language detection
- Langdetect language detection