Hi,
I have two websites that have identical language configuration. Both are using the WPML-Elasticpress add-on. Both are bilingual for Arabic (default) and English.
On the first one, if I go to Status Report, I can see two indices. The first one is for Arabic and the language analyzer is set correctly to arabic.
But on the second one I noticed that the analyzer was set to english. So I tried adding this to its functions file:
add_filter('ep_analyzer_language', static function (): string {
return 'arabic';
});
That did change the analyzer to arabic and surprisingly didn’t affect the English one.
But I was curious on this inconsistency. Is there a better way to have the proper language analyzer per language?
Hi,
I have two websites that have identical language configuration. Both are using the WPML-Elasticpress add-on. Both are bilingual for Arabic (default) and English.
On the first one, if I go to Status Report, I can see two indices. The first one is for Arabic and the language analyzer is set correctly to arabic.
But on the second one I noticed that the analyzer was set to english. So I tried adding this to its functions file:
That did change the analyzer to arabic and surprisingly didn’t affect the English one.
But I was curious on this inconsistency. Is there a better way to have the proper language analyzer per language?