Ok, thank you so much. Regards, Edwin On 11 May 2015 16:15, "Anshum Gupta" <ans...@anshumgupta.net> wrote:
> FWIR, you just need to make sure that it's a valid collection. It doesn't > have to be one from the list of collections that you want to query, but the > collection name you use in the URL should exist. > e.g, assuming you have 2 collections foo (10 docs) and bar (5 docs): > > */solr/foo/select?q=*:*&collection=bar* #results: 5 > > */solr/xyz/select?q=*:*&collection=bar* will lead to a HTTP 404 response > > */solr/foo/select?q=*:* *#results: 10 > > > On Mon, May 11, 2015 at 12:59 AM, Zheng Lin Edwin Yeo < > edwinye...@gmail.com> > wrote: > > > Thank you for the query. > > > > Just to confirm, for the 'gettingstarted' in the query, does it matter > > which collection name I put? > > > > Regards, > > Edwin > > On 11 May 2015 15:51, "Anshum Gupta" <ans...@anshumgupta.net> wrote: > > > > > You can query multiple collections by specifying the list of > collections > > > e.g.: > > > > > > http://hostname:port > > > > > > > > > /solr/gettingstarted/select?q=test&collection=collection1,collection2,collection3 > > > > > > On Sun, May 10, 2015 at 11:49 PM, Zheng Lin Edwin Yeo < > > > edwinye...@gmail.com> > > > wrote: > > > > > > > Hi, > > > > > > > > Would like to check, is there a way to query multiple collections > > > together > > > > in a single query and return the results in one result set? > > > > > > > > For example, I have 2 collections and I want to search for records > with > > > the > > > > word 'solr' in both of the collections. Is there a query to do that, > or > > > > must I query both collections separately, and get two different > result > > > > sets? > > > > > > > > Regards, > > > > Edwin > > > > > > > > > > > > > > > > -- > > > Anshum Gupta > > > > > > > > > -- > Anshum Gupta >