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

Multi level compositeId router

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.7, 6.0
    • SolrCloud
    • None

    Description

      This would enable multi level routing as compared to the 2 level routing available as of now. On the usage bit, here's an example:

      Document Id: myapp!dummyuser!doc
      myapp!dummyuser! can be used as the shardkey for searching content for dummyuser.
      myapp! can be used for searching across all users of myapp.

      I am looking at either a 3 (or 4) level routing. The 32 bit hash would then comprise of 8X4 components from each part (in case of 4 level).

      Usage:

      Document Id: myapp!dummyuser!doc

      To query all users for a particular app (default setup), the route key should be: 'myapp/8!'.
      To query a particular user for a specific app, the route key should be: 'myapp!dummyuser!'

      The syntax for querying all users for a particular app is required because this router works at both 2 and 3 level of composite id.
      A route key of 'myapp!' would technically translate to constructing the hash range with 16 bits coming from the key i.e. 2-level composite id.

      Attachments

        1. SOLR-5320.patch
          22 kB
          Anshum Gupta
        2. SOLR-5320.patch
          21 kB
          Anshum Gupta
        3. SOLR-5320.patch
          16 kB
          Anshum Gupta
        4. SOLR-5320.patch
          15 kB
          Anshum Gupta
        5. SOLR-5320.patch
          14 kB
          Anshum Gupta
        6. SOLR-5320.patch
          14 kB
          Noble Paul
        7. SOLR-5320.patch
          12 kB
          Anshum Gupta
        8. SOLR-5320-refactored.patch
          13 kB
          Anshum Gupta

        Activity

          People

            shalin Shalin Shekhar Mangar
            anshum Anshum Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified