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 hashable returns a scalar value to be used as a hash valuephp snmp 函数 return 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 specifies the shape to be used at the corners of paths when they are strokedphp mongocursor sets whether this cursor will be left open after fetching the last resultsphp 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 if a field will only be highlighted if the query matched in this particular fieldphp solrquery returns whether or not morelikethis results should be enabledphp solrquery returns an integer indicating how terms are sortedphp solrquery set if the query will be boosted by the interesting term relevancephp swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.php zookeeper sets the stream to be used by the library for logging
关注编程学问公众号