Solr 4.4 分佈式查詢請求API

分佈式請求

查詢所有碎片的集合(集合是隱含在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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章