Page 1 of 1

Solr core creation error

Posted: Tue Oct 14, 2014 2:04 pm
by gowthamgutha
I am getting the following error, while I am trying to add a new core

Problem accessing /solr/mycore/admin/cores.
Reason: Not Found

The code snippet..

<bean id="mySolrServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
<constructor-arg value="http://localhost:8983/solr/mycore"/>

<bean id="mySolrReindexServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
<constructor-arg value="http://localhost:8983/solr/mycore-reindex"/>

I think, I need to put http://localhost:8983/solr in mySolrServer which then points to default core, but there can be only one default core in Solr, Now how do I deal with two primary cores, one primary core is already solrServer (as below)

Code: Select all

    <bean id="solrServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
        <constructor-arg value="http://localhost:8983/solr"/>

Thanks in advance. Hope you will reply as soon as possible.