Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No results on the source/main language pages #5

Open
Razko90 opened this issue Sep 23, 2020 · 2 comments
Open

No results on the source/main language pages #5

Razko90 opened this issue Sep 23, 2020 · 2 comments

Comments

@Razko90
Copy link

Razko90 commented Sep 23, 2020

'post_lang' => $this->getQueryLang(),

Im getting no results on the main language sites, using sub directories for languages.
site.com/
site.com/en
site.com/de

Fixed by changing line 45 to:

'post_lang.keyword' => $this->getQueryLang(),

@strategio
Copy link
Member

Hi @Razko90 and thanks for your feedback.

We are also running languages in sub directories for our main site and we don't have this problem.

Can you share the versions you are running? (WPML, ElasticPress)

@decodekult
Copy link
Collaborator

I suspect that the site has Spanish as the default language, so de and en are stopwords hence the language assigned to indexed documents is just ignored.

The changes in #13 should fix this issue. If you can confirm it, @Razko90 , that would be perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants