This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Random Sort Clause¶
The Random Sort Clause orders search results randomly.
Arguments¶
- (optional)
seed- int representing the random seed - (optional)
sortDirection- Query or LocationQuery constant, eitherQuery::SORT_ASCorQuery::SORT_DESC
Limitations¶
The Random Sort Clause isn't available in Repository filtering.
In Elasticsearch engine, you cannot combine the Random Sort Clause with any other Sort Clause.
Example¶
1 2 | |