Hi solr users

   I want to create a core with node_name through the api
CloudSolrServer.query(SolrParams params  ).
  For example:
  ModifiableSolrParams  params  = new ModifiableSolrParams();
        params.set("qt", "/admin/cores");
        params.set("action", "CREATE");
        params.set("name", newcore.getName());
        params.set("shard",  newcore.getShardname());
        params.set("collection.configName",
newcore.getCollectionconfigname());
        params.set("schema", newcore.getSchemaXMLFilename());
        params.set("config", newcore.getSolrConfigFilename());
        params.set("coreNodeName", newcore.getCorenodename());
        params.set("node_name", "10.7.23.124:8080_solr");
        params.set("collection", newcore.getCollectionname());

 The newcore encapsulats the create properties about the created core.


  It seems  not to work. As a result,the core was created on the other node.

  Do I need to send the  params directly  to the explicit web server -here
is the 10.7.23.124 - instead of using the CloudSolrServer.query(SolrParams
params  )?




regards

Reply via email to