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 Sushant Vengurlekar <sv...@curvolabs.com> on 2018/08/20 19:38:44 UTC

Question about updating indexes on solrcloud with single instance solr

I have a question regarding updating the indexes on solrcloud with indexes
from a standalone solr server. We have a solrcloud which is running. We
have couple of cores on that standalone solr instance which are also
present on the solrcloud as collections. I need to bring in updated indexes
from this standalone solr instance to cloud.

Does anyone have an idea on what steps need to be taken.

Thank you

Re: Question about updating indexes on solrcloud with single instance solr

Posted by Erick Erickson <er...@gmail.com>.
There are two choices:

1> shut down all three replicas and copy the index to each one then
start them up.
2> DELETEREPLICA on two of them, update the remaining one, then issue
an ADDREPLICA to get the other two back.

Of the two, I'd go with <2>. When you ADDREPLICA Solr will take care
of copying down the index and putting the new replicas into service.

Best,
Erick



On Mon, Aug 20, 2018 at 2:51 PM, Sushant Vengurlekar
<sv...@curvolabs.com> wrote:
> thanks for the reply Eric
>
> I have one shard per replica but I have 3 replicas on the solrcloud. So how
> do I update from the standalone solr core to these 3 replicas
>
> On Mon, Aug 20, 2018 at 2:43 PM Erick Erickson <er...@gmail.com>
> wrote:
>
>> Assuming that your stand-alone indexes are a single core (i.e. not
>> sharded), then just create a single-shard collection with the
>> appropriate schema. From there I'd shut my Solr instance down, copy
>> the index files "to the right place" and fire it all back up. I'd do
>> this with a single-replica SolrCloud collection, then ADDREPLICA to
>> build out the collection.
>>
>> There's no way to say "reconcile this arbitrary index I built with
>> stand-alone with my SolrCloud collection", so it'a all manual.
>>
>> Best,
>> Erick
>>
>> On Mon, Aug 20, 2018 at 12:38 PM, Sushant Vengurlekar
>> <sv...@curvolabs.com> wrote:
>> > I have a question regarding updating the indexes on solrcloud with
>> indexes
>> > from a standalone solr server. We have a solrcloud which is running. We
>> > have couple of cores on that standalone solr instance which are also
>> > present on the solrcloud as collections. I need to bring in updated
>> indexes
>> > from this standalone solr instance to cloud.
>> >
>> > Does anyone have an idea on what steps need to be taken.
>> >
>> > Thank you
>>

Re: Question about updating indexes on solrcloud with single instance solr

Posted by Sushant Vengurlekar <sv...@curvolabs.com>.
thanks for the reply Eric

I have one shard per replica but I have 3 replicas on the solrcloud. So how
do I update from the standalone solr core to these 3 replicas

On Mon, Aug 20, 2018 at 2:43 PM Erick Erickson <er...@gmail.com>
wrote:

> Assuming that your stand-alone indexes are a single core (i.e. not
> sharded), then just create a single-shard collection with the
> appropriate schema. From there I'd shut my Solr instance down, copy
> the index files "to the right place" and fire it all back up. I'd do
> this with a single-replica SolrCloud collection, then ADDREPLICA to
> build out the collection.
>
> There's no way to say "reconcile this arbitrary index I built with
> stand-alone with my SolrCloud collection", so it'a all manual.
>
> Best,
> Erick
>
> On Mon, Aug 20, 2018 at 12:38 PM, Sushant Vengurlekar
> <sv...@curvolabs.com> wrote:
> > I have a question regarding updating the indexes on solrcloud with
> indexes
> > from a standalone solr server. We have a solrcloud which is running. We
> > have couple of cores on that standalone solr instance which are also
> > present on the solrcloud as collections. I need to bring in updated
> indexes
> > from this standalone solr instance to cloud.
> >
> > Does anyone have an idea on what steps need to be taken.
> >
> > Thank you
>

Re: Question about updating indexes on solrcloud with single instance solr

Posted by Erick Erickson <er...@gmail.com>.
Assuming that your stand-alone indexes are a single core (i.e. not
sharded), then just create a single-shard collection with the
appropriate schema. From there I'd shut my Solr instance down, copy
the index files "to the right place" and fire it all back up. I'd do
this with a single-replica SolrCloud collection, then ADDREPLICA to
build out the collection.

There's no way to say "reconcile this arbitrary index I built with
stand-alone with my SolrCloud collection", so it'a all manual.

Best,
Erick

On Mon, Aug 20, 2018 at 12:38 PM, Sushant Vengurlekar
<sv...@curvolabs.com> wrote:
> I have a question regarding updating the indexes on solrcloud with indexes
> from a standalone solr server. We have a solrcloud which is running. We
> have couple of cores on that standalone solr instance which are also
> present on the solrcloud as collections. I need to bring in updated indexes
> from this standalone solr instance to cloud.
>
> Does anyone have an idea on what steps need to be taken.
>
> Thank you