Closed ausi closed 6 years ago
You should probably base this on the 4.4 branch as it is a bugfix?
Is it? I think it’s a feature: adding support for non-latin languages to the search. Also, the behaviour will probably change slightly so I would prefer to add it in 4.7.
we have to know the language in advance to know how to split the serch term. How should we do that?
well we do know the page language, don't we?
well we do know the page language, don't we?
Yes, we do. But currently it is possible to search across muliple languages at once, but if splitting words depends on the language this is no longer possible this way.
You mean splitting on the input field, not on the page content to index?
Yes. The search input has to be splitted the same way, otherwise many results wouldn’t be found.
I see. Well I guess we can only use the current page language …
Thank you @ausi.
As discussed in contao/core#2769.
This is a work in progress.
One problem I encountered is that it is currently possible to search in pages with different languages but we have to know the language in advance to know how to split the serch term. How should we do that?