Apache Solr SolrDocument::sort
(PECL solr >= 0.9.2)
SolrDocument::sort — 문서의 필드를 정렬합니다.
설명
public SolrDocument::sort(int $sortOrderBy
, int $sortDirection
= SolrDocument::SORT_ASC): bool
The fields are rearranged according to the specified criteria and sort direction Fields can be sorted by boost values, field names and number of values. The sortOrderBy parameter must be one of : * SolrDocument::SORT_FIELD_NAME * SolrDocument::SORT_FIELD_BOOST_VALUE * SolrDocument::SORT_FIELD_VALUE_COUNT The sortDirection can be one of : * SolrDocument::SORT_DEFAULT * SolrDocument::SORT_ASC * SolrDocument::SORT_DESC The default way is to sort in ascending order.
매개변수
sortOrderBy
- 정렬 기준입니다.
sortDirection
- 정렬 방향입니다.
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.