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

Deprecate CloudSolrClient.setIdField, use information from Zookeeper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.2
    • 8.7
    • None
    • None

    Description

      IIUC idField has nothing to do with the <uniqueKey> field. It's really
      the field used to route documents. Agreed, this is often the "id"
      field, but still....

      In fact, over in UpdateReqeust.getRoutes(), it's passed as the "id"
      field to router.getTargetSlice() and just works, even though
      getTargetSlice is clearly designed to route on a field other than the
      <uniqueKey> if we didn't just pass null as the "route" param.

      The confusing bit is that if I have a route field defined for my
      collection and want to use CloudSolrClient I have to figure out that I
      need to use the setIdField method to use that field for routing.

       

      We should deprecate setIdField and refactor how this is used (i.e. getRoutes). Need to beef up tests too I suspect.

      Attachments

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              erickerickson Erick Erickson
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: