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

add Paging Streaming Expression

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • streaming expressions
    • None

    Description

      Currently the closest streaming expression that allows some sort of pagination is top.
      I propose we add a new streaming expression, which is based on the RankedStream class to add offset to the stream. currently it can only be done in code by reading the stream until the desired offset is reached.

      The new expression will be used as such:
      paging(rows=3, search(collection1, q=":", qt="/export", fl="id,a_s,a_i,a_f", sort="a_f desc, a_i desc"), sort="a_f asc, a_i asc", start=100)

      this will offset the returned stream by 100 documents

       

      joel.bernstein what to you think?

      Attachments

        1. SOLR-12209.patch
          20 kB
          mosh
        2. SOLR-12209.patch
          20 kB
          mosh
        3. SOLR-12209.patch
          18 kB
          mosh
        4. SOLR-12209.patch
          17 kB
          mosh

        Activity

          People

            Unassigned Unassigned
            moshebla mosh
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: