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

Random sort with state maintain, during paging #2

Open
MichalGrzegorzak opened this issue Sep 1, 2015 · 1 comment
Open

Random sort with state maintain, during paging #2

MichalGrzegorzak opened this issue Sep 1, 2015 · 1 comment

Comments

@MichalGrzegorzak
Copy link

Hi,
thank You for this wonderful plugin.
I`m curious if this can be extended to support random sort with paging ?

Currently during paged queries we have always a new random order, and that`s not too good.
I think the problem could be resolved if I could pass a seed value to the random function. Would it be possible in Find ? (found such solution for ElasticSearch)

@lindstromhenrik
Copy link
Contributor

Hi,

Not at the moment. The plugin uses a pre-defined script registered in the backend that the client can't pass parameters to (clients are no longer allowed to pass scripts directly to the backend for security reasons). I guess the best solution for you at the moment is to cache the viewed page and generate a new page (random sort and exclude seen items).

/Henrik

1 sep 2015 kl. 11:11 skrev Michal Grzegorzak [email protected]:

Hi,
thank You for this wonderful plugin.
I`m curious if this can be extended to support random sort with paging ?

Currently during paged queries we have always a new random order, and that`s not too good.
I think the problem could be resolved if I could pass a seed value to the random function. Would it be possible in Find ? (found such solution for ElasticSearch)


Reply to this email directly or view it on GitHub.

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