Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-162

Allow pagination with cursorMark

    XMLWordPrintable

    Details

      Description

      As of solr 4.7, deep paging is allowed as exaplained here:

      https://cwiki.apache.org/confluence/display/solr/Pagination+of+Results

      It should be great to have an implementation of Pageable to allow search starting from saved cursor mark.


      The API could look like:

      Query query = new SimpleQuery("*:*").addSort(new Sort(Direction.ASC, "id")).setPageRequest(new PageRequest(0, 5));
      Cursor<Entity> cursor = solrTemplate.queryForCursor(query, Entity.class);
      while(cursor.hasNext()) {
        //do something
        //loads new results every 5 items until no more entries available
      }
      cursor.close();
      

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            rsallar Ramon Salla Rovira
            Last updater:
            Oliver Drotbohm
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: