I'm having some problems with searches on a multi language site (using same code as the included example site). The searches works great when a page only exists with one language but when a page has the same pagename under both languages it will only show up in the result by either searching with "Search on all languages" checked or switching to the second language.
For example:
Pagename "Media" exists in both SV and EN, but is only found under EN. If "Search on all languages" is checked it also appears under SV with the correct SV content. A search on "Media" without the checkbox ticked results in an empty list.
Grateful for any ideas of what could be wrong.
To clearify the problem:
Only one language instance of a page can be found. If a page only exists on SV or EN it can be found under respective search. But if a page exists on both SV and EN it will only be found under one language, like for instance EN, eventhough the pagename matches 100% to the query.