Bad request for SOLR build index

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:

(0 users)Average rating

Document information


More support for:

WebSphere Commerce Enterprise
Configuration

Software version:

7.0

Operating system(s):

AIX, Linux, Windows

Software edition:

All Editions

Reference #:

1622509

Modified date:

2013-02-18

Translate my page

Machine Translation

Content navigation