Would collection aliasing be a relevant feature here (a different approach): http://blog.cloudera.com/blog/2013/10/collection-aliasing-near-real-time-search-for-really-big-data/
Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency On Mon, Apr 14, 2014 at 6:05 PM, Mukesh Jha <me.mukesh....@gmail.com> wrote: > Hello Experts, > > I want to index my documents in a way that all documents for a day are > stored in a single shard. > > I am planning to have shards for each day e.g. shard1_01_01_2010, > shard1_02_01_2010 ... > And while hashing the documents of 01/01/2010 should go to > shard1_01_01_2010. > > Thins way I can query a specific shard for my documents of a given date, > also I can just delete the shards for date older than some data. > > For this I tried using date*!*docId as my hashing param but it calculates > the hash on the date feild and assigns a shard (based on which shard is > assigned for that hash) to it which is not what i desire to have. > > Is this possible using the current solr-cloud? > > -- > > > Thanks & Regards, > > *Mukesh Jha <me.mukesh....@gmail.com>*