lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jawedshamshedi <>
Subject Creating index in multicore solr
Date Fri, 18 Nov 2011 07:22:24 GMT
Hi All,
I created two core and they are showing http://{localhost}:8983/solr/ and
which I click on them the admin panel is opened. The solr.xml files has
below given code.

<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true" >
<cores adminPath="/admin/cores">
<core name="core0" instanceDir="core0" />
<core name="core1" instanceDir="core1" />

And I create the folder accordingly. But when I try to add handler to it
suppose to core1 in the core1->config->solrconfig.xml , the core0 disappears
from the core list

The core for requesthandler is given below.
<requestHandler name="/dataimport"
        <lst name="defaults">
            <str name="config">data-config.xml</str>

The content of data-config.xml under core0/conf is:

	<dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/lc" user="root" password=""/>
	<document name="content">
        <entity name="stock" query="select
ST_StockID,ST_StockCode,ST_Name,ST_ItemDetail from stock where estatus =
'Active' limit 100">
           	<field column="ST_StockID" name="ST_StockID" />
                <field column="ST_StockCode" name="ST_StockCode" />
                <field column="ST_Name" name="ST_Name" />
		<field column="ST_ItemDetail" name="ST_ItemDetail" />

The url I am using for core0 to do a full-import is

But in response I am getting
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="initArgs">
<lst name="defaults">
<str name="config">data-config.xml</str>
<str name="command">full-import</str>
<str name="status">idle</str>
<str name="importResponse"/>
<lst name="statusMessages">
<str name="Time Elapsed">0:0:0.172</str>
<str name="Total Requests made to DataSource">0</str>
<str name="Total Rows Fetched">0</str>
<str name="Total Documents Processed">0</str>
<str name="Total Documents Skipped">0</str>

<str name="Full Dump Started">2011-11-18 12:42:02</str>
<str name="">Indexing failed. Rolled back all changes.</str>
<str name="Rolledback">2011-11-18 12:42:02</str>
<str name="WARNING">
This response format is experimental.  It is likely to change in the future.

Any help will be appreciated. 

View this message in context:
Sent from the Lucene - General mailing list archive at

View raw message