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 harudoc set how pages should be displayedphp harudoc set how the document should be displayedphp imagickdraw sets the fill color to be used for drawing filled objectsphp imagickdraw specifies 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 phar defines a list of up to 4 $ server variables that should be modified for executionphp solrquery add a field to be used to group resultsphp 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 whether or not morelikethis results should be enabledphp solrquery returns the treshold frequency at which words will be ignored which do not occur in at least this many docsphp solrquery returns the frequency below which terms will be ignored in the source documentphp solrquery returns the minimum word length below which words will be ignoredphp solrquery returns the minimum document frequency to return in order to be includedphp solrquery returns an integer indicating how terms are sortedphp solrquery removes one of the fields used for highlightingphp solrquery sets the minimum document frequency used for determining term countphp swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.
关注编程学问公众号