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

MergeStream to support N streams

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: SolrJ
    • Labels:

      Description

      Enhances MergeStream to support merging N streams. This was previously limited to merging just two streams but with this enhancement it can now accept any number of streams to merge.

      Based on the comparator, if more than one stream could provide the next value then the selected value will follow the order of the streams as they appear in the expression or were added to the MergeStream object.

      merge(
        search(collection1, q="id:(0 4)", fl="id,a_s,a_i,a_f", sort="a_f asc, a_s asc"),
        search(collection1, q="id:(1)", fl="id,a_s,a_i,a_f", sort="a_f asc, a_s asc"),
        search(collection1, q="id:(2)", fl="id,a_s,a_i,a_f", sort="a_f asc, a_s asc"),
        on="a_f asc"
      )
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dpgove Dennis Gove
                Reporter:
                dpgove Dennis Gove
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: