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.
IsMainLocation Sort Clause¶
The Location\IsMainLocation
Sort Clause
sorts search results by whether their Location is the main Location of the Content item.
Locations that are not main Locations are ranked as lower values (e.g. with ascending order they will be returned first).
Arguments¶
sortDirection
(optional) - Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
.
Example¶
1 2 |
|