Hi

Thx for the snippet of SolrJ code for Core Creation...

Request Do we have a Solr/Solrj internal implementation of AAA on this Core 
creation

Reason : I want restricted access for core creation.

Do we have a GIT repository with these sorts of java-solr example.. to try


with regards
karthik

On 2021/10/18 12:39:18, "Mark H. Wood" <mw...@iupui.edu> wrote: 
> On Sun, Oct 17, 2021 at 12:41:44PM -0600, Shawn Heisey wrote:
> > On 10/17/2021 7:08 AM, nskarthik wrote:
> > >>> not possible when Solr is in standalone mode
> > > I use Solr in NON-CLOUD  standalone mode.
> > > 
> > > Process :  /solr Create -c <new core>
> > > This feature just creates an empty core (copies all required default 
> > > files ), but why this cannot be created from SOLRJ ?
> > > 
> > > If this feature is made available with AAA, Core creation would be simple 
> > > and powerful.
> > 
> > When Solr is in cloud mode, the bin/solr script copies a config up to 
> > ZooKeeper and then calls the Collections API.  These are both API calls, 
> > not filesystem manipulation.  Solr does all the work of creating cores. 
> >   This is possible because with SolrCloud, the active config for a 
> > collection is not on disk, it's in ZooKeeper.
> > 
> > As you might have figured out, it's the config that makes things difficult.
> > 
> > Normally when Solr is in standalone mode, the bin/solr script creates a 
> > core directory with the required structure, copies a config into the 
> > newly created directory structure, and then calls the http-based 
> > CoreAdmin API to complete the registration of a new core in Solr.  Solr 
> > cannot do the directory/file creation in standalone mode.
> 
> Thank you for explaining this.  From time to time I run into something
> I need to do and am blocked because it only works in cloud mode.
> These prohibitions have always seemed completely arbitrary.  Maybe
> they will make more sense to me now.
> 
> -- 
> Mark H. Wood
> Lead Technology Analyst
> 
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu
> 

Reply via email to