SolrQuery::addSortField

(PECL solr >= 0.9.2)

SolrQuery::addSortFieldUsed to control how the results should be sorted

说明

public SolrQuery::addSortField ( string $field [, int $order = SolrQuery::ORDER_DESC ] ) : SolrQuery

Used to control how the results should be sorted.

参数

field

The name of the field

order

The sort direction. This should be either SolrQuery::ORDER_ASC or SolrQuery::ORDER_DESC.

返回值

Returns the current SolrQuery object.

相关文章
php dbx 函数 escape a string so it can safely be used in an sql statementphp runkit 函数 determines if the current functions return value will be usedphp snmp 函数 specify the method how the snmp values will be returnedphp gmagickdraw sets the fill color to be used for drawing filled objectsphp harudoc set how pages should be displayedphp harudoc set how the document should be displayedphp imagickdraw returns the shape to be used at the end of open subpaths when they are strokedphp imagickdraw returns the shape to be used at the corners of paths when they are strokedphp solrquery add a field to be used to group resultsphp solrquery allows grouping results based on the unique values of a function query group.func parameter php solrquery used to control how the results should be sortedphp solrquery returns the maximum number of constraint counts that should be returned for the facet fieldsphp solrquery returns the minimum counts for facet fields should be included in the responsephp solrquery returns an offset into the list of constraints to be used for paginationphp solrquery returns the list of fields that will be returned in the responsephp solrquery returns all the fields that solr should generate highlighted snippets forphp solrquery returns whether or not morelikethis results should be enabledphp solrquery returns whether or not the query will be boosted by the interesting term relevancephp solrquery returns an integer indicating how terms are sortedphp solrquery sets the frequency below which terms will be ignored in the source docs
关注编程学问公众号