Search API: facets issue on translated custom fields #8287
Labels
Feature: API
Feature: Search/Browse
GDCC: SciencesPO
related to GDCC work for Sciences PO
Type: Suggestion
an idea
User Role: API User
Makes use of APIs
What steps does it take to reproduce the issue?
In a TSV file I have a controlled vocabulary with the value
Politics.Elections
forTopic Classification Term
. This value is then translated in two languages using the java properties:Elections
Élections
When I query the search API with facets enabled (
show_facet: true
), the label for this field is taken from the english translation. I get this:This becomes an issue when I try to search Dataverse using this facet. When I search
topicClassValue_ss:"Elections"
I get no results because the needed value for the search is the one not translated:topicClassValue_ss:"Politics.Elections"
. However, there is no way to get the needed value from the API.When does this issue occur?
When querying the Search API with a translated facet where the english translation is different from the value in the TSV file.
Which page(s) does it occurs on?
In the search API.
What happens?
The query returns 0 elements.
To whom does it occur (all users, curators, superusers)?
Tested only on public API (with no token), but it should occur for any user.
What did you expect to happen?
Be able to use the translated value for facets or have the correct name intended to be used in the API as a new field.
Which version of Dataverse are you using?
5.8
Any related open or closed issues to this bug report?
#8286
The text was updated successfully, but these errors were encountered: