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

Add support for indicating preferred replica types for queries

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      It would be nice to have the possibility to easily sort the shards in the preferred order e.g. by replica type. The attached patch adds support for shards.sort parameter that allows one to sort e.g. PULL and TLOG replicas first with {{shards.sort=replicaType:PULL|TLOG }}(which would mean that NRT replicas wouldn't be hit with queries unless they're the only ones available) and/or to sort by replica location (like preferLocalShards=true but more versatile).

      Attachments

        1. SOLR-11982.patch
          31 kB
          Tomas Eduardo Fernandez Lobbe
        2. SOLR-11982.patch
          31 kB
          Ere Maijala
        3. SOLR-11982.patch
          29 kB
          Ere Maijala
        4. SOLR-11982.patch
          29 kB
          Ere Maijala
        5. SOLR-11982.patch
          30 kB
          Ere Maijala
        6. SOLR-11982.patch
          29 kB
          Ere Maijala
        7. SOLR-11982.patch
          23 kB
          Ere Maijala
        8. SOLR-11982.patch
          23 kB
          Ere Maijala
        9. SOLR-11982.patch
          21 kB
          Ere Maijala
        10. SOLR-11982-preferReplicaTypes.patch
          15 kB
          Ere Maijala
        11. SOLR-11982-preferReplicaTypes.patch
          15 kB
          Ere Maijala

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tflobbe Tomas Eduardo Fernandez Lobbe
            emaijala Ere Maijala
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment