Question

In solr wiki this phrase can be found:

To enable dynamic core configuration, make sure the adminPath attribute is set in solr.xml. If this attribute is absent, the CoreAdminHandler will not be available.

In old style solr.xml this attribute sets in cores element:

cores adminPath="/admin/cores"

In new (discovery) style solr.xml (available since solr 4.4 and mandatory since coming 5th) there is no cores element to set and no any notion about adminPath attribute around. As a result, if to check localhost:8983/solr, error occurs:

NetworkError: 404 Not Found - http://localhost:8983/solr/admin/cores?wt=json&indexInfo=false

Does all this mean dynamic core handling via HTTP is unavailable in 4.4+ solr or I missed to set something in configs?

Thanks in advance.

Edit solr.xml

<solr>
    <str name="adminHandler">${adminHandler:org.apache.solr.handler.admin.CoreAdminHandler}</str>
    <int name="coreLoadThreads">${coreLoadThreads:3}</int>
    <str name="coreRootDirectory">${coreRootDirectory:@SOLR.CORES.DIRECTORY@}</str>
    <str name="managementPath">${managementPath:}</str>
    <str name="sharedLib">${sharedLib:}</str>
    <str name="shareSchema">${shareSchema:false}</str>

    <solrcloud>
        <int name="distribUpdateConnTimeout">${distribUpdTimeout:1000000}</int>
        <int name="distribUpdateSoTimeout">${distribUpdateTimeout:1000000}</int>
        <int name="leaderVoteWait">${leaderVoteWait:1000000}</int>
        <str name="host">${host:}</str>
        <str name="hostContext">${hostContext:solr}</str>
        <int name="hostPort">${jetty.port:8983}</int>
        <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
    </solrcloud>

    <logging>
        <str name="class">${loggingClass:}</str>
        <str name="enabled">${loggingEnabled:}</str>
        <watcher>
            <int name="size">${loggingSize:1000000}</int>
            <int name="threshold">${loggingThreshold:100000}</int>
        </watcher>
    </logging>
</solr>

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top