Is it possible to have a field in schema.xml that is of type text_fr or text_ar, because this field can be in french or in arabic?
Or should I regroup the definitions of text_fr or text_ar in the same custom type?
You can use Copyfields to copy the source to multiple fields with different anaylysis.
Also,
<copyField source="text" dest="text_fr" />
<copyField source="text" dest="text_ar" />
You should look into the Language Detection support that Solr provides.
This feature adds the ability to detect the language of a document before indexing and then make appropriate decisions about analysis, etc.
A little bit better description of this support and a comparison of the two supported detection types can be found in Solr Reference Guide - Detecting Languages During Indexing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With