Random Sort Clause¶
The Random
Sort Clause
orders search results randomly.
Arguments¶
seed
(optional) - int representing the random seedsortDirection
(optional) - Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
.
Limitations¶
The Random
Sort Clause is not available in Repository filtering.
In Elasticsearch engine, you cannot combine the Random
Sort Clause with any other Sort Clause.
Example¶
1 2 |
|