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

BUG: saving the page will interrupt the ability to search this page in other languages #811

Open
rasstislav opened this issue Oct 7, 2023 · 2 comments

Comments

@rasstislav
Copy link

rasstislav commented Oct 7, 2023

Hello,

I have this ISSUE: When searching, results will only be returned that match the last language that the page was saved in. e.g. save the page in English, then only English words will match the content. Save the page in French, then only French keywords will match, and English keywords will no longer match.

silverstripe/framework: 4.13.29
silverstripe/cms: 4.13.8
tractorcow/silverstripe-fluent: 6.0.0

@tractorcow
Copy link
Collaborator

The normal search does not work. In the old version of fluent we had a replacement search engine, but it was very complicated and did not work well. You will need to create your own localised search engine, as the default one will not work out of the box with fluent. I suggest you to look into something like algolia, and create separate indexes for each language.

@tractorcow
Copy link
Collaborator

If you want to use the fulltextsearch module, there is a built in hook for this.

https://github.com/tractorcow-farm/silverstripe-fluent/blob/master/src/Search/FluentSearchVariant.php

That uses solr by default as an index.

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

2 participants