Hi

Would it make sense to modify/ add a method to CoreContainer that creates a
core if the core doesn't exist ?

something like

public SolrCore getCore(String name) {
    synchronized(cores) {
      SolrCore core = cores.get(name);
      if (core != null)
        core.open();  // increment the ref count while still synchronized
      else {
      core = create(name);
      cores.put(name,core);
    }
      return core;
    }
  }


My apology if this already documented...

matt

Reply via email to