With earlier versions of Solr Cloud, if there was any error or warning when you made a collection, you likely were set up for "implicit" routing which means that documents only go to the shard you're talking to. What you want is "compositeId" routing, which works how you think it should.
Go into the cloud GUI and look at clusterstate.json in the Tree tab. You should see the routing algorithm it's using in that file. Michael Della Bitta ------------------------------------------------ Appinions 18 East 41st Street, 2nd Floor New York, NY 10017-6271 www.appinions.com Where Influence Isn’t a Game On Wed, Apr 3, 2013 at 2:59 PM, vsilgalis <vsilga...@gmail.com> wrote: > Chris Hostetter-3 wrote >> I'm not familiar with the details, but i've seen miller respond to a >> similar question with reference to the issue of not explicitly specifying >> numShards when creating your collections... >> >> http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201303.mbox/% > >> 3C0AA0B422-F1DE-4915-B602-53CB1849204A@ > >> %3E >> >> >> -Hoss > > Well theoretically we are okay there. > > The commands we run to create our collection are as follow (note the > numShards being specified): > http://server01/solr/admin/cores?action=CREATE&name=classic_bt&collection=classic_bt&numShards=2&instanceDir=instances/basistech&dataDir=/opt/index/classic_bt&config=solrconfig.xml&schema=schema.xml&collection.configName=classic_bt > > http://server02/solr/admin/cores?action=CREATE&name=classic_bt&collection=classic_bt&numShards=2&instanceDir=instances/basistech&dataDir=/opt/index/classic_bt&config=solrconfig.xml&schema=schema.xml&collection.configName=classic_bt > > http://server03/solr/admin/cores?action=CREATE&name=classic_bt_shard1&collection=classic_bt&numShards=2&instanceDir=instances/basistech&dataDir=/opt/index/classic_bt_shard1&config=solrconfig.xml&schema=schema.xml&collection.configName=classic_bt&shard=shard1 > > http://server03/solr/admin/cores?action=CREATE&name=classic_bt_shard2&collection=classic_bt&numShards=2&instanceDir=instances/basistech&dataDir=/opt/index/classic_bt_shard2&config=solrconfig.xml&schema=schema.xml&collection.configName=classic_bt&shard=shard2 > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SolrCloud-not-distributing-documents-across-shards-tp4053506p4053581.html > Sent from the Solr - User mailing list archive at Nabble.com.