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 Aaron Lewis <th...@gmail.com> on 2014/10/15 10:31:55 UTC

How does one specify which collections to use?

Hi,

I'm using PHP client here:
http://php.net/manual/en/class.solrquery.php

I couldn't figure out how to use "collection2" instead of
"collection1", I don't see such options in constructor either.

Anyone know that?

-- 
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33

Re: How does one specify which collections to use?

Posted by Matthew Nigl <ma...@gmail.com>.
Hi Aaron,

You would need to set 'path' in the options array when you create a
SolrClient.

http://php.net/manual/en/solrclient.construct.php

Regards,
Matt

On 15 October 2014 19:31, Aaron Lewis <th...@gmail.com> wrote:

> Hi,
>
> I'm using PHP client here:
> http://php.net/manual/en/class.solrquery.php
>
> I couldn't figure out how to use "collection2" instead of
> "collection1", I don't see such options in constructor either.
>
> Anyone know that?
>
> --
> Best Regards,
> Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
> Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
>