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 vidya <vi...@tcs.com> on 2016/01/22 14:10:36 UTC
collection aliasing
Hi
I wanted to mainatain two sets of indexes or collections for maintaing my
large input data for indexing for which i found collection aliasing is
helpful. I have created alais for 2 collections. but my problem is , how can
i point out my alias to 2 different colletions at 2 different times.
Thanks in advance.
--
View this message in context: http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: collection aliasing
Posted by Erick Erickson <er...@gmail.com>.
bq: How can a full index rebuild can be done ?
> The points to the current collection (collection1)
> create a new collection (collection 2)
> full index to collection2
> point the alias at collection2
Best,
Erick
On Fri, Jan 29, 2016 at 5:20 AM, Shawn Heisey <ap...@elyograg.org> wrote:
> On 1/29/2016 5:00 AM, vidya wrote:
>> How can a full index rebuild can be done ?
>
> Here is the "not exactly helpful" wiki page on this topic:
>
> https://wiki.apache.org/solr/HowToReindex
>
> Thanks,
> Shawn
>
Re: collection aliasing
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/29/2016 5:00 AM, vidya wrote:
> How can a full index rebuild can be done ?
Here is the "not exactly helpful" wiki page on this topic:
https://wiki.apache.org/solr/HowToReindex
Thanks,
Shawn
Re: collection aliasing
Posted by vidya <vi...@tcs.com>.
Hi
How can a full index rebuild can be done ?
--
View this message in context: http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527p4254077.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: collection aliasing
Posted by Jeff Wartes <jw...@whitepages.com>.
I enjoy using collection aliases in all client references, because that allows me to change the collection all clients use without updating the clients. I just move the alias.
This is particularly useful if I’m doing a full index rebuild and want an atomic, zero-downtime switchover.
On 1/28/16, 6:07 AM, "Shawn Heisey" <ap...@elyograg.org> wrote:
>On 1/28/2016 2:59 AM, vidya wrote:
>> Hi
>>
>> Then what is the difference between collection aliasing and shards parameter
>> mentioned in request handler of solrconfig.xml.
>>
>> In request handler of new collection's solrconfig.xml
>> shards =
>> http://localhost:8983/solr/collection1,http://localhost:8983/solr/collection1
>> I can query both data of collection1 and collection2 in new collection which
>> is same as collection aliasing.
>>
>> Is my understanding correct ? If so, then what is the special characteristic
>> of collection alaising. Please help me.
>
>Collection aliasing handles it completely automatically, no need to put
>a shards parameter *anywhere*. That is the main difference.
>
>The shards parameter is the old way of doing distributed searches.
>SolrCloud completely automates the process so that neither the admin nor
>the user has to worry about it. Aliases are part of that automation.
>
>Thanks,
>Shawn
>
Re: collection aliasing
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/28/2016 2:59 AM, vidya wrote:
> Hi
>
> Then what is the difference between collection aliasing and shards parameter
> mentioned in request handler of solrconfig.xml.
>
> In request handler of new collection's solrconfig.xml
> shards =
> http://localhost:8983/solr/collection1,http://localhost:8983/solr/collection1
> I can query both data of collection1 and collection2 in new collection which
> is same as collection aliasing.
>
> Is my understanding correct ? If so, then what is the special characteristic
> of collection alaising. Please help me.
Collection aliasing handles it completely automatically, no need to put
a shards parameter *anywhere*. That is the main difference.
The shards parameter is the old way of doing distributed searches.
SolrCloud completely automates the process so that neither the admin nor
the user has to worry about it. Aliases are part of that automation.
Thanks,
Shawn
Re: collection aliasing
Posted by vidya <vi...@tcs.com>.
Hi
Then what is the difference between collection aliasing and shards parameter
mentioned in request handler of solrconfig.xml.
In request handler of new collection's solrconfig.xml
shards =
http://localhost:8983/solr/collection1,http://localhost:8983/solr/collection1
I can query both data of collection1 and collection2 in new collection which
is same as collection aliasing.
Is my understanding correct ? If so, then what is the special characteristic
of collection alaising. Please help me.
Thanks in advance
--
View this message in context: http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527p4253787.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: collection aliasing
Posted by Susheel Kumar <su...@gmail.com>.
As Jens mentioned you use aliasing for referring to a group of collections.
E.g. below command you can create a alias called quarterly for 3 separate
collections Jan,Feb & Mar and then you can use alias quarterly to refer all
of them in single query
http://
<server>:8983/solr/admin/collections?action=CREATEALIAS&name=Quarterly&collections=Jan,Feb,Mar
http://
<server>:8983/solr/Quarterly/select?q=fire&wt=json&indent=true&collection=
Quarterly&facet=true&facet.field=docType&rows=300
On Sun, Jan 24, 2016 at 7:44 AM, vidya <vi...@tcs.com> wrote:
> Yeah, while querying and indexing also, we can directly use our collection
> names. Then what is the use of aliasing ?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527p4252885.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: collection aliasing
Posted by Jens Brandt <br...@docoloc.de>.
Hi,
you may, for instance, create one alias for several collections in order to search all of them in one request. Another possibility is to use an alias to switch between collections.
Jens
> Am 24.01.2016 um 13:44 schrieb vidya <vi...@tcs.com>:
>
> Yeah, while querying and indexing also, we can directly use our collection
> names. Then what is the use of aliasing ?
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527p4252885.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: collection aliasing
Posted by vidya <vi...@tcs.com>.
Yeah, while querying and indexing also, we can directly use our collection
names. Then what is the use of aliasing ?
--
View this message in context: http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527p4252885.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: collection aliasing
Posted by Susheel Kumar <su...@gmail.com>.
Hi Vidya, if i understood your question correctly you can simply use the
original collection name(s) to point to individual collections. Isn't that
the case?
Thanks,
Susheel
On Fri, Jan 22, 2016 at 8:10 AM, vidya <vi...@tcs.com> wrote:
> Hi
>
> I wanted to mainatain two sets of indexes or collections for maintaing my
> large input data for indexing for which i found collection aliasing is
> helpful. I have created alais for 2 collections. but my problem is , how
> can
> i point out my alias to 2 different colletions at 2 different times.
>
> Thanks in advance.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/collection-aliasing-tp4252527.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>