Solr 4.4 分布式查询请求API
程序员文章站
2022-07-14 21:57:41
...
分布式请求
查询所有碎片的集合(集合是隐含在URL):
http://localhost:8983/solr/collection1/select?
查询所有碎片兼容的收集,明确规定:
http://localhost:8983/solr/collection1/select?collection=collection1_recent
查询所有碎片多个兼容的集合,明确指定:
http://localhost:8983/solr/collection1/select?collection=collection1_NY,collection1_NJ,collection1_CT
查询具体的碎片IDS(隐含的)的集合。在这个例子中,用户按日期分区的索引,创建一个新的碎片每月:
http://localhost:8983/solr/collection1/select?shards=shard_200812 shard_200912 shard_201001
明确指定你要查询的地址碎片:
http://localhost:8983/solr/collection1/select?shards=localhost:8983/solr中,localhost:7574/solr
明确指定你要查询的地址碎片,给人的替代品(|分隔)用于负载平衡和故障转移:
http://localhost:8983/solr/collection1/select?shards=localhost:8983/solr|localhost:8900/solr,localhost:7574/solr|localhost:7500/solr