Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4221 Custom sharding
  3. SOLR-5017

Allow sharding based on the value of a field

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.5, 6.0
    • None
    • None

    Description

      We should be able to create a collection where sharding is done based on the value of a given field

      collections can be created with shardField=fieldName, which will be persisted in DocCollection in ZK

      implicit DocRouter would look at this field instead of shard field

      CompositeIdDocRouter can also use this field instead of looking at the id field.

      Attachments

        1. SOLR-5017.patch
          10 kB
          Noble Paul

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              noble.paul Noble Paul
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: