I have an index which indexes "Content" and "Taxonomy Terms". I also have a view which lets you search that index.

When I add a filter for "Indexed Multiple types: Item language (= Current user's language)" it displays all items regardless of language. If I set the filter to only display "Language Neutral" results it shows all search results. If I set it to any other language it shows zero results.

This seems to indicate that it thinks all results are Language Neutral.

The same view using a different index of only "Content" works fine and filters the results based on language.

Comments

fraserthompson created an issue. See original summary.

fraserthompson’s picture

Issue summary: View changes
drunken monkey’s picture

Component: General code » Plugins
Status: Active » Needs review
StatusFileSize
new695 bytes

Thanks for reporting this problem! I think I see where this is going wrong. Please test whether the attached patch resolves the problem for you. (You'll have to re-index the index after applying the patch.)

fraserthompson’s picture

This patch does resolve the problem for me, searches only return results in the selected language now. Thanks!

fraserthompson’s picture

Status: Needs review » Reviewed & tested by the community
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for testing, good to hear.
Committed.
Thanks again, also, for the report!

  • drunken monkey committed fe202e7 on 7.x-1.x
    Issue #2842856 by drunken monkey: Fixed language filters for "Multiple...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.