Hi,
I am facing an issue while trying to use the solrj EmbeddedServer to load a
core. I am trying to load the example/solr packaged with solr-3.6.1.
It works perfectly fine through CommonHTTPSolrSever. I am able to query and
fetch the document.
I used the following jar files to compile and run.
apache-solr-solrj-3.6.1
apache-solr-core-3.6.1
slf4j-api-1.6.1
commons-io-2.1
lucene-core-3.6.1
commons-fileupload-1.2.2
servlet-api-2.5
commons-httpclient-3.1
commons-logging.jar
commons-code-1.6
However if I try to load the same 'solr' through Embedded Server - i get No
Such Core Error.
1) I tried passing the core name - 'collection1' - but same error
>From solr.xml
<solr persistent="false">
<!--
adminPath: RequestHandler path to manage cores.
If 'null' (or absent), cores will not be manageable via request handler
-->
<cores adminPath="/admin/cores" defaultCoreName="collection1">
<core name="collection1" instanceDir="." />
</cores>
</solr>
2) I also checked my solrconfig.xml and requesthandler for "/update" is set
as follows
>From solrconfig.xml
<requestHandler name="/update"
class="solr.XmlUpdateRequestHandler">
<!-- See below for information on defining
updateRequestProcessorChains that can be used by name
on each Update Request
-->
<!--
<lst name="defaults">
<str name="update.chain">dedupe</str>
</lst>
-->
</requestHandler>
--Senthil