mardi 7 juillet 2015

Adding a seed to random sphinx search

I am attempting to return a random series of results for a Sphinx search, but add a seed to @random so that results are maintained over a paginated set of results.

Currently, we are retrieving a random set of results using the following code:

SetSortMode(SPH_SORT_EXTENDED, "@random ASC");

Is it possible to add a seed to this random sorting mode?




Aucun commentaire:

Enregistrer un commentaire