Technote (troubleshooting)
This document applies only to the following language version(s):
English
Problem(Abstract)
During the SOLR build index process (di-buildindex utility), bad request errors occur when building the index for non-English languages.
Symptom
In the wc-dataimport-buildindex.log file, there is an "Error 400: Missing SOLR core name in path" message, with the following bad request stack error:
INFO: Data import process was unsuccessful. An unrecoverable error has occurred.
Throwable occurred: org.apache.solr.common.SolrException: Bad Request
Bad Request
request: http://localhost/solr/MC_10351_CatalogEntry_Unstructured_zh_CN/dataimport
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:432)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:246)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at com.ibm.commerce.foundation.dataimport.process.util.SolrUtil.makeDataImportNoCleanCommand(SolrUtil.java:301)
at com.ibm.commerce.foundation.dataimport.process.DataImportProcessorMain.fullDataImport(DataImportProcessorMain.java:1379)
at com.ibm.commerce.foundation.dataimport.process.DataImportProcessorMain.executeDIH(DataImportProcessorMain.java:635)
at com.ibm.commerce.foundation.dataimport.process.DataImportProcessorMain.main(DataImportProcessorMain.java:315)
Cause
The store only supports index building for English by default. Non-English language support must be added to the store manually by updating the storelang table.
Resolving the problem
Update the storelang table in the database, inserting the necessary languages for the store. Re-run the setupSearchIndex utility to generate the corresponding directories under the SOLR home directory. Then, build the index for the non-English languages.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.