You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ahmed Abdeen Hamed <ah...@gmail.com> on 2011/12/21 22:12:35 UTC

Update schema.xml using solrj APIs

Hello friend,

I am new to Solrj and I am wondering if there is a away you can update the
schema.xml file via the APIs.

I would appreciate any help.

Thanks very much,
-Ahmed

Re: Update schema.xml using solrj APIs

Posted by Ahmed Abdeen Hamed <ah...@gmail.com>.
Thanks everyone! That was very helpful.
-Ahmed

On Thu, Dec 22, 2011 at 5:15 AM, Chantal Ackermann <
chantal.ackermann@btelligent.de> wrote:

>
> Hi Ahmed,
>
> if you have a multi core setup, you could change the file
> programmatically (e.g. via XML parser), copy the new file to the
> existing one (programmatically, of course), then reload the core.
>
> I haven't reloaded the core programmatically, yet, but that should be
> doable via SolrJ. Or - if you are not using Java, then call the specific
> core admin URL in your programme.
>
> You will have to re-index after changing the schema.xml.
>
> Chantal
>
>
> On Thu, 2011-12-22 at 04:34 +0100, Otis Gospodnetic wrote:
> > Ahmed,
> >
> > At this point in time - no.  You need to edit it manually and restart
> Solr to see the changed.
> > This will change in the future.
> >
> > Otis
> > ----
> > Performance Monitoring SaaS for Solr -
> http://sematext.com/spm/solr-performance-monitoring/index.html
> >
> >
> >
> > >________________________________
> > > From: Ahmed Abdeen Hamed <ah...@gmail.com>
> > >To: solr-user@lucene.apache.org
> > >Sent: Wednesday, December 21, 2011 4:12 PM
> > >Subject: Update schema.xml using solrj APIs
> > >
> > >Hello friend,
> > >
> > >I am new to Solrj and I am wondering if there is a away you can update
> the
> > >schema.xml file via the APIs.
> > >
> > >I would appreciate any help.
> > >
> > >Thanks very much,
> > >-Ahmed
> > >
> > >
> > >
>
>

Re: Update schema.xml using solrj APIs

Posted by Chantal Ackermann <ch...@btelligent.de>.
Hi Ahmed,

if you have a multi core setup, you could change the file
programmatically (e.g. via XML parser), copy the new file to the
existing one (programmatically, of course), then reload the core.

I haven't reloaded the core programmatically, yet, but that should be
doable via SolrJ. Or - if you are not using Java, then call the specific
core admin URL in your programme.

You will have to re-index after changing the schema.xml.

Chantal


On Thu, 2011-12-22 at 04:34 +0100, Otis Gospodnetic wrote:
> Ahmed,
> 
> At this point in time - no.  You need to edit it manually and restart Solr to see the changed.
> This will change in the future.
> 
> Otis
> ----
> Performance Monitoring SaaS for Solr - http://sematext.com/spm/solr-performance-monitoring/index.html
> 
> 
> 
> >________________________________
> > From: Ahmed Abdeen Hamed <ah...@gmail.com>
> >To: solr-user@lucene.apache.org 
> >Sent: Wednesday, December 21, 2011 4:12 PM
> >Subject: Update schema.xml using solrj APIs
> > 
> >Hello friend,
> >
> >I am new to Solrj and I am wondering if there is a away you can update the
> >schema.xml file via the APIs.
> >
> >I would appreciate any help.
> >
> >Thanks very much,
> >-Ahmed
> >
> >
> >


Re: Update schema.xml using solrj APIs

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Ahmed,

At this point in time - no.  You need to edit it manually and restart Solr to see the changed.
This will change in the future.

Otis
----
Performance Monitoring SaaS for Solr - http://sematext.com/spm/solr-performance-monitoring/index.html



>________________________________
> From: Ahmed Abdeen Hamed <ah...@gmail.com>
>To: solr-user@lucene.apache.org 
>Sent: Wednesday, December 21, 2011 4:12 PM
>Subject: Update schema.xml using solrj APIs
> 
>Hello friend,
>
>I am new to Solrj and I am wondering if there is a away you can update the
>schema.xml file via the APIs.
>
>I would appreciate any help.
>
>Thanks very much,
>-Ahmed
>
>
>