Re: Rename solrconfig.xml

2018-02-27 Thread Zheng Lin Edwin Yeo
Hi Shawn,

Yes, I'm running SolrCloud.

Meaning we have to create all the cores in the collection with the default
solrconfig.xml first?
Then we have to modify the core.properties, and rename the solrconfig.xml.
After which, we have to reload the renamed config to ZooKeeper, then reload
the collection?

We will need to customize our program for the client, which is why we
wanted to have our own unique config file.

Regards,
Edwin


On 27 February 2018 at 17:21, Shawn Heisey  wrote:

> On 2/27/2018 12:59 AM, Zheng Lin Edwin Yeo wrote:
>
>> Regarding the core.properties, understand from the Solr guide that we need
>> to define the "config" properties first. However, my core.properties will
>> only be created when I create the collection from the command
>> http://localhost:8983/solr/admin/collections?action=CREATE;
>> name=collection
>>
>> The core.properties does not exists, and if I try to create one manually,
>> Solr will not read it, and it will still try to look for solrconfig.xml.
>>
>> What should be the right way to create the core.properties?
>>
>
> If you're running SolrCloud, you'll very likely have to allow it to create
> all the cores in the collection, then go back and modify the
> core.properties files that get created, and reload the collection once
> they're all changed.  If this actually works, keep in mind that the renamed
> config file is going to be loaded from zookeeper, right where
> solrconfig.xml would normally exist.
>
> Specifying options remotely in core.properties can only be done with the
> CoreAdmin API, but this is not used when in Cloud mode. The Collections API
> actually *does* use the CoreAdmin API behind the scenes, but because its
> usage in SolrCloud is very much an expert-level task, you shouldn't use it
> directly.
>
> The big question I have:  Why would you want to cause yourself difficulty
> by doing this?
>
> Thanks,
> Shawn
>
>


Re: Rename solrconfig.xml

2018-02-27 Thread Shawn Heisey

On 2/27/2018 12:59 AM, Zheng Lin Edwin Yeo wrote:

Regarding the core.properties, understand from the Solr guide that we need
to define the "config" properties first. However, my core.properties will
only be created when I create the collection from the command
http://localhost:8983/solr/admin/collections?action=CREATE=collection

The core.properties does not exists, and if I try to create one manually,
Solr will not read it, and it will still try to look for solrconfig.xml.

What should be the right way to create the core.properties?


If you're running SolrCloud, you'll very likely have to allow it to 
create all the cores in the collection, then go back and modify the 
core.properties files that get created, and reload the collection once 
they're all changed.  If this actually works, keep in mind that the 
renamed config file is going to be loaded from zookeeper, right where 
solrconfig.xml would normally exist.


Specifying options remotely in core.properties can only be done with the 
CoreAdmin API, but this is not used when in Cloud mode. The Collections 
API actually *does* use the CoreAdmin API behind the scenes, but because 
its usage in SolrCloud is very much an expert-level task, you shouldn't 
use it directly.


The big question I have:  Why would you want to cause yourself 
difficulty by doing this?


Thanks,
Shawn



Re: Rename solrconfig.xml

2018-02-26 Thread Zheng Lin Edwin Yeo
Regarding the core.properties, understand from the Solr guide that we need
to define the "config" properties first. However, my core.properties will
only be created when I create the collection from the command
http://localhost:8983/solr/admin/collections?action=CREATE=collection

The core.properties does not exists, and if I try to create one manually,
Solr will not read it, and it will still try to look for solrconfig.xml.

What should be the right way to create the core.properties?

Regards,
Edwin

On 27 February 2018 at 11:31, @Nandan@ 
wrote:

> You can change into core config file and then you can use any name .
> As i used as table_solrconfig.xml
> Same concept will applicable with schema.xml file too.
>
> On Feb 27, 2018 11:11 AM, "Zheng Lin Edwin Yeo" 
> wrote:
>
> Hi Alexandre,
>
> Thanks for your reply.
>
> Will this cause other issues with the functionality if it is renamed?
>
> Regards,
> Edwin
>
> On 27 February 2018 at 07:15, Alexandre Rafalovitch 
> wrote:
>
> > I believe this can be set with "config" property in the
> > core.properties file:
> > https://lucene.apache.org/solr/guide/7_2/defining-core-
> > properties.html#defining-core-properties
> >
> > Whether it is a good idea longer term, is a different question.
> >
> > Regards,
> >Alex.
> >
> > On 23 February 2018 at 18:06, Zheng Lin Edwin Yeo 
> > wrote:
> > > Hi,
> > >
> > > Would like to check, how can we rename solrconfig.xml to something
> else?
> > > For example, I want to rename it to myconfig.xml. Is this possible?
> > >
> > > I'm using Solr 6.5.1, and planning to upgrade to Solr 7.2.1.
> > >
> > > Regards,
> > > Edwin
> >
>


Re: Rename solrconfig.xml

2018-02-26 Thread @Nandan@
You can change into core config file and then you can use any name .
As i used as table_solrconfig.xml
Same concept will applicable with schema.xml file too.

On Feb 27, 2018 11:11 AM, "Zheng Lin Edwin Yeo" 
wrote:

Hi Alexandre,

Thanks for your reply.

Will this cause other issues with the functionality if it is renamed?

Regards,
Edwin

On 27 February 2018 at 07:15, Alexandre Rafalovitch 
wrote:

> I believe this can be set with "config" property in the
> core.properties file:
> https://lucene.apache.org/solr/guide/7_2/defining-core-
> properties.html#defining-core-properties
>
> Whether it is a good idea longer term, is a different question.
>
> Regards,
>Alex.
>
> On 23 February 2018 at 18:06, Zheng Lin Edwin Yeo 
> wrote:
> > Hi,
> >
> > Would like to check, how can we rename solrconfig.xml to something else?
> > For example, I want to rename it to myconfig.xml. Is this possible?
> >
> > I'm using Solr 6.5.1, and planning to upgrade to Solr 7.2.1.
> >
> > Regards,
> > Edwin
>


Re: Rename solrconfig.xml

2018-02-26 Thread Zheng Lin Edwin Yeo
Hi Alexandre,

Thanks for your reply.

Will this cause other issues with the functionality if it is renamed?

Regards,
Edwin

On 27 February 2018 at 07:15, Alexandre Rafalovitch 
wrote:

> I believe this can be set with "config" property in the
> core.properties file:
> https://lucene.apache.org/solr/guide/7_2/defining-core-
> properties.html#defining-core-properties
>
> Whether it is a good idea longer term, is a different question.
>
> Regards,
>Alex.
>
> On 23 February 2018 at 18:06, Zheng Lin Edwin Yeo 
> wrote:
> > Hi,
> >
> > Would like to check, how can we rename solrconfig.xml to something else?
> > For example, I want to rename it to myconfig.xml. Is this possible?
> >
> > I'm using Solr 6.5.1, and planning to upgrade to Solr 7.2.1.
> >
> > Regards,
> > Edwin
>


Re: Rename solrconfig.xml

2018-02-26 Thread Alexandre Rafalovitch
I believe this can be set with "config" property in the
core.properties file:
https://lucene.apache.org/solr/guide/7_2/defining-core-properties.html#defining-core-properties

Whether it is a good idea longer term, is a different question.

Regards,
   Alex.

On 23 February 2018 at 18:06, Zheng Lin Edwin Yeo  wrote:
> Hi,
>
> Would like to check, how can we rename solrconfig.xml to something else?
> For example, I want to rename it to myconfig.xml. Is this possible?
>
> I'm using Solr 6.5.1, and planning to upgrade to Solr 7.2.1.
>
> Regards,
> Edwin