fixes #5870 Searching content with multiple languages

Fixed the issue and pushed the code for review, please check it.