On 12/27/22 18:40, Mike wrote:
I have a Solr server with multiple cores with the same schema.
For some queries I want to query several cores at the same time.
I looked at the options and tried to configure what didn't work and that's
how I ended up here.
How can I query on query A -> Core1
and at query B .-> Core1 and Core2
Please help me with the configuration, thanks.
Is it running in cloud mode? If it is, then that is very
straightforward to do. Probably the way I would do it is to create a
collection alias pointing to both of the collections.
If it's not in cloud mode you can still do it with the shards parameter.
This is an example of the shards parameter from a Solr cluster I used to
maintain, with the domain name changed to "example.com":
idxb2.example.com:8981/solr/inclive,idxb1.example.com:8981/solr/s0live,idxb1.example.com:8981/solr/s1live,idxb1.example.com:8981/solr/s2live,idxb2.example.com:8981/solr/s3live,idxb2.example.com:8981/solr/s4live,idxb2.example.com:8981/solr/s5live
It was a sharded index, but did not use cloud mode as that did not yet
exist in a released Solr version when I built the cluster.
Thanks,
Shawn