Writing multiple documents to Solr shards via Solrj?

OK, finally I ended up with a mapping I stored in the database regarding the data entities I use. So I map entity to Solr instances.

Up vote 0 down vote favorite share g+ share fb share tw.

I am currently storing a collection of documents to one Solr server via SolrServer. Add(Collection docs). I want to shard the server into e.g. Shards.

Is it possible to use this Collection-adding method and picking the correct shard based on each single document in this collection? My simple sharding strategy is to pick the correct shard, by using the hashCode/modulo method like described in wiki.apache.org/solr/DistributedSearch. UniqueId.hashCode() % numServers Update OK, I have found a distributed update processor in issues.apache.org/jira/browse/SOLR-2355, but maybe there is a simpler way?

Solr sharding solrj link|improve this question edited Jan 4 at 13:44 asked Jan 4 at 12:27Daniel89239 86% accept rate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions