On 12/27/22 19:50, Mike wrote:
The server is not in cloud mode, it is a standalone server.
I don't understand where to put the query line, in the URL, with what query
parameter (?=) ?
Do I have to change something in solr.xml or solrconfig?
If you put it in the URL:
&shards=server:port/solr/core1,server:port/solr/core2
The way I did it is created a special core with no index of its own and
put the following line in the solrconfig.xml, in the defaults section of
the search handler:
<str
name="shards">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</str>
Queries never went directly to the cores with data, they only went to
the special core. I wrote an indexing system that would ensure
documents ended up in the correct shard.
Thanks,
Shawn