Choosing português brasileiro or português europeu from the language menu in filters returns zero results

Description

Steps to reproduce

  1. Log in

  2. Post > New Work

  3. Fill in required fields and select either "Português brasileiro" or "Português europeu" from "Choose a language"

  4. Post

  5. Wait a few seconds

  6. Hi, username! > My Works

  7. In the filters, select the same language from "Language"

  8. Sort & Filter

What happens

Get zero results.

What should happen

Should get at least the work you just posted (more if you have other works in that language).

Notes

Entering language_id: ptBR or language_id: ptPT in "Search within results" does get the proper results.

Elz 10:43
it looks like we didn't set the mapping for that field to keyword
which is what you'd want for a term filter
we need to change the filter to { term: { "language_id.keyword" => "ptBR" } }
ideally we'd change the mapping if we're ever doing a reindex

 

Environment

None

Status

Assignee

enigel lj

Reporter

Sarken

Roadmap

Browse
Internationalization
Search

Priority

High

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure