- Issue created by @stijndmd
- 🇮🇳India bhojwanipankaj05
Hi @stijndmd,
Thank you for investigating this. I am checking the case and will resolve this as earliest possible. - Status changed to Closed: works as designed
over 1 year ago 12:47pm 20 June 2023 - 🇮🇳India bhojwanipankaj05
Synonyms Multilingual support implemented with the new release 2.0.2
- Status changed to Needs review
over 1 year ago 12:55pm 20 June 2023 - 🇧🇪Belgium stijndmd
I'm confused as to why we have to pick one langauage for the managed resource mapping in configuration.
What's needed is the possibility to map the resources via drush for all the languages on the website.
Proposed resolution
On every drush solr-search-synonym:export --plugin=solr_uploader --langcode=[YOUR_CHOSEN_LANGCODE], we need to replace the hardcoded path variable $path = 'schema/analysis/synonyms/english'; by the path for the corresponding language. Or we need to just remove the language from the drush command and upload all synonyms to their correct language solr config file.
- 🇮🇳India bhojwanipankaj05
@stijndmd If we are importing synonyms using drush command like - drush solr-search-synonym:export --plugin=solr_uploader --langcode=[YOUR_CHOSEN_LANGCODE]
here we can just pass langcode, its not related with configured language in admin synonyms setting. language configuration works with Import to Solr button in the admin synonyms listing page, where we need to change the language before importing data using Import to Solr button for a specific language. - Status changed to Closed: works as designed
over 1 year ago 2:07pm 19 July 2023 - Status changed to Active
about 1 year ago 6:11am 6 December 2023 - 🇨🇦Canada joseph.olstad
For some reason it's pushing out an unrecognized parameter, perhaps instead of français the endpoint is expecting french?
joseph_internet:~/project (Précision-Recherche *) $ drush solr-search-synonym:export --plugin=solr_uploader --langcode=fr Starting synonym export.... In SolrConnectorPluginBase.php line 1089: Solr endpoint https://s7015-us-east-1.sr-prod02.acquia.com:443/solr/EKUX-177489.dev.ramqinter/ bad request (code: 400, body: No REST managed r esource registered for path /schema/analysis/synonyms/français, message: Solr HTTP error: Bad Request (400) { "responseHeader":{ "status":400, "QTime":1}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"No REST managed resource registered for path /schema/analysis/synonyms/français", "code":400}} ). In SearchSubscriber.php line 197: Solr HTTP error: Bad Request (400) { "responseHeader":{ "status":400, "QTime":1}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException",
- 🇨🇦Canada joseph.olstad
ok I hard coded it to 'french' , similar error. I'm not sure what is going on. Support request to acquia likely.
Solr HTTP error: Bad Request (400) { "responseHeader":{ "status":400, "QTime":0}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"No REST managed resource registered for path /schema/analysis/synonyms/french", "code":400}}
- Status changed to Fixed
about 1 year ago 6:27am 6 December 2023 - Status changed to Needs review
about 1 year ago 9:29am 6 December 2023 - 🇮🇳India bhojwanipankaj05
@josepholstad As it shows No REST managed resource registered for français and french path. You just need to register resource by adding this below line with POST or PUT method in postman or any other API management platform.
{"class":"org.apache.solr.rest.schema.analysis.ManagedSynonymFilterFactory$SynonymManager"}or reference
Reference screenshot attached. Please check
After registering resource you can follow the synonym export command.
- Status changed to Closed: outdated
10 months ago 9:19am 27 February 2024