lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Ulicny <culi...@iq.media>
Subject Re: Query to multiple collections
Date Mon, 22 Oct 2018 18:19:49 GMT
Rohan,

I do not remember where I came across it or what restrictions exist on it,
but it works for our use case of querying multiple archived collections
with identical schemas in the same SolrCloud cluster. The queries have the
following form:

http:<host>:<port>/solr/current/select?collection=current,archive2,archive4&q=...


It seems like it might work for your use case, but you might need to tread
carefully depending on your requirements for the returned results. Sorting
and duplicate unique keys come to mind.

Best,
Chris

On Mon, Oct 22, 2018 at 1:49 PM Rohan Kasat <rohan.kasat@gmail.com> wrote:

> Hi All ,
>
> I have a SolrCloud setup with multiple collections.
> I have created say -  two collections here as the data source for the both
> collections are different and hence wanted to store them differently.
> There is a use case , where i need to query both the collections and show
> unified search results.
> The fields in the schema are same. ( say - title , description , date )
> Is there any specific way i can do this directly with the collections API
> or something like that?
> Or i need to write a federator and combine results from search to the
> respective collections and then unify them?
>
> --
>
> *Regards,Rohan*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message