Language filter does not work for more complex langcodes like pt-br/zh-hans

Created on 23 January 2021, almost 4 years ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

The issue is that the langcodes with a hypen, like pt-br breaks the filtering based on the `_language` field.

Proposed resolution

https://stackoverflow.com/questions/31301849/elasticsearch-searching-wit...
Using the `.raw` field might solve the issue

Remaining tasks

Create the patch, test it.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

RTBC

Version

7.0

Component

Code

Created by

🇭🇺Hungary aron novak Hungary, Budapest

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024