Solr core creation error
Posted: Tue Oct 14, 2014 2:04 pm
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..
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)
Thanks in advance. Hope you will reply as soon as possible.
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>
<bean id="mySolrReindexServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
<constructor-arg value="http://localhost:8983/solr/mycore-reindex"/>
</bean>
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"/>
</bean>
Thanks in advance. Hope you will reply as soon as possible.