Hi,
I'm using EmbeddedSolrServer   for testing the solr.
I went step by step in this instuctions (for solr 4)
https://wiki.searchtechnologies.com/index.php/Unit_Testing_with_Embedded_Solr
I can see that the config loaded, but when I try to put document, the error I 
get is:
org.apache.solr.common.SolrException: No such core: collection1

I'm sure it's something in the solr.xml, but I couldn't find the issue,
Any thought?

in the solr.xml I have:
<solr>

    <solrcloud>
        <str name="host">${host:}</str>
        <int name="hostPort">${jetty.port:8983}</int>
        <str name="hostContext">${hostContext:solr}</str>
        <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
        <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
    </solrcloud>

    <solr persistent="true">
        <cores adminPath="collection1" defaultCoreName="collection1">
            <core name="collection1" instanceDir="collection1" />
        </cores>
    </solr>


    <shardHandlerFactory name="shardHandlerFactory"
                         class="HttpShardHandlerFactory">
        <int name="socketTimeout">${socketTimeout:0}</int>
        <int name="connTimeout">${connTimeout:0}</int>
    </shardHandlerFactory>

</solr>

Thanks,
Shani


---------------------------------------------------------------------
Intel Electronics Ltd.

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Reply via email to