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

More flexibility for using cursors in requests

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      I would like to be able to make a cursored request but also be able to get, for example, facet query responses in the same request. Solr supports this kind of request, but I am finding it very hard to do with Spring Data Solr. (The reason I can't rely on normal paging for this kind of thing is because my Solr collection is being constantly updated.)

      I can currently sort-of accomplish this by registering my own QueryParser that manually adds the CURSOR_MARK_PARAM, but this only lets me set the initialCursorMark and doesn't give me any access to the returned Cursor (specifically, for my purposes, I need access to nextCursorMark so I can request the next page at some unspecified later time).

      I was hoping I could perhaps create a SolrTemplate subclass with a hybrid queryForFacetPage and queryForCursor method, and also add an optional initialCursorMark argument to queryForCursor, but most of the methods called internally by those methods are not accessible.

      Is there an alternative that I've overlooked? If not, does anyone have a suggestion as to the best way to implement this such that it would be useful to the upstream project?

      Thanks!

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            cfinucane Cameron Finucane
            Last updater:
            Cameron Finucane
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: