lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "NewSolrCloudDesign" by YonikSeeley
Date Mon, 05 Sep 2011 15:19:56 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "NewSolrCloudDesign" page has been changed by YonikSeeley:

shard naming

  By deriving the top 8 bits of the hashcode from the user_id, it guarantees that any users
emails are in the same 256th portion of the cluster.  At search time, this information can
be used to only query that portion of the cluster.
  We probably also want to view the hash space as a ring (as is done with consistent hashing)
in order to express ranges that wrap (cross from the maximum value to the minimum value).
+ === partition naming ===
+ When partitioning is by hash code, rather than maintaining a separate mapping of shard name
(which is currently the actual core name), the shard name could actually be the actual range
of documents within it.  So localhost:8983/solr/1-1000 would contain docs with a hash between
1 and 1000.  This is only necessary for auto-sharding using a hash on the id.  Other custom
mappings should be able to take an id and map it directly to a partition.
  == Shard Assignment ==

View raw message