Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5258

router.field support for compositeId router

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.6, 6.0
    • None
    • None

    Description

      Although there is code to support router.field for CompositeId, it only calculates a simple (non-compound) hash, which isn't that useful unless you don't use compound ids (this is why I changed the docs to say router.field is only supported for the implicit router). The field value should either

      • be used to calculate the full compound hash
      • be used to calculate the prefix bits, and the uniqueKey will still be used for the lower bits.

      For consistency, I'd suggest the former.
      If we want to be able to specify a separate field that is only used for the prefix bits, then perhaps that should be "router.prefixField"

      Attachments

        1. SOLR-5258.patch
          0.8 kB
          Noble Paul
        2. SOLR-5258.patch
          2 kB
          Noble Paul

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              yseeley@gmail.com Yonik Seeley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: