Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructing StartOrCursor.Cursor #213

Closed
mhov opened this issue Sep 25, 2015 · 1 comment
Closed

Constructing StartOrCursor.Cursor #213

mhov opened this issue Sep 25, 2015 · 1 comment

Comments

@mhov
Copy link

mhov commented Sep 25, 2015

Is there a practical reason the StartOrCursor.Cursor has an internal constructor? I have a case where I'm exposing solr results through a rest api. I'd like to be able to return the next cursor and let the user send it back to me for the next page to do something like:

queryOptions.StartOrCursor = new StartOrCursor.Cursor([cursor string from request]);

but currently the only way to queryOptions.StartOrCursor is from a previous queryResult.NextCursorMark which can't be done through stateless requests.

mausch added a commit that referenced this issue Sep 30, 2015
@mausch
Copy link
Member

mausch commented Sep 30, 2015

It was to prevent invalid values (the constructor was only used when parsing the response).
But yeah, you're right, I just made it public.

Cheers

@mausch mausch closed this as completed Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants