Hi im using sphinx 201 beta (r2792)
i have rt index with rt_attr_uint = rake my goal is to sort results by this attribute
whitch work as expected using
$this->sphinx->SetSortMode(SPH_SORT_EXTENDED, 'rake DESC')
but i want to also randomize this result … lets say i have this data
(id, title, rake)
1, 'test', 3
2, 'test2', 3
3, 'ásdf', 1
4, 'rreer', 0
so after i append random
$this->sphinx->SetSortMode(SPH_SORT_EXTENDED, 'rake DESC, @random')
i would expect randomize result sorted by attribute rake descending
but im getting error:
sort-by attribute '@random' not found
whitch i dont understand because this random attribute is internal attribute
am i doing something wrong? where could be a problem? thanks
What I did is create the random number on the SQL query
Added it as an attribute
And then use it in the extended sort query