Skip to content

Choosing the correct language analyzer #56

Description

@comzeradd

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions