-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request/Idea: Change the language of facets in the search API #8286
Comments
@bappun - see the PR for some limits on what I was able to do in one PR/on current funds. It should allow API calls using translated terms to work, though you do need to search against the field (e.g. subject) rather than the special facet field (subject_ss). |
We upgraded our instance to 5.10.1 but we are not able to search for the translated value. I get no results when I search for Is there something we need to do to index the translated properties? We restarted payara and also did a reexportAll at the end of the upgrade. |
Yes, a reindex would be required. (The 5.10 release includes Additional Release Steps: Solr Upgrade which includes doing a reindex all. Reindexing wasn't listed as a separate step due to that.) |
Thank you @qqmyers, the reindex fixes the issue. However, the reindex stops with an error when it is processing a dataset with a field that does not allow multiple values (but we have not changed the allow multiple values in our TSVs). Here is an error we got:
I am just guessing but could it be possible? The only hot fix I can see is to allow multiple values for our controlled vocabulary fields, update the schema, and reindexing. What do you think? |
Ergh! We must have only tested with multivalue fields? In any case, I think there's a simpler fix - just change the schema.xml line for any single-valued CVV field to have multiValued="true" - i.e. this line for samplingProcedure . You'll probably have to restart solr and reindex after that change. This allows multiple values in solr but doesn't allow the user to add multiple entries in the UI. Pleas submit an issue as this is something where we need to update the default schema for any fields in the standard blocks and the update schema script. |
Thank you! We changed to true for our CVV fields and the reindex worked. I will create the issue. |
Overview of the Feature Request
I would like to be able to get the facets in different languages directly in the API. Maybe by adding a language parameter to the request?
What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)
API User
What inspired the request?
Integration of Dataverse search API in another website using javascript.
What existing behavior do you want changed?
The translation of facets in the search API.
Any related open or closed issues to this feature request?
#8287
The text was updated successfully, but these errors were encountered: