SolrQuery::addField

(PECL solr >= 0.9.2)

SolrQuery::addFieldSpecifies which fields to return in the result

说明

public SolrQuery::addField ( string $field ) : SolrQuery

This method is used to used to specify a set of fields to return, thereby restricting the amount of data returned in the response.

It should be called multiple time, once for each field name.

参数

field

The name of the field

返回值

Returns the current SolrQuery object

相关文章
php frontbase 函数 get number of fields in resultphp maxdb 函数 return the number of rows in statements result setphp solrquery overrides main filter query determines which documents to include in the main groupphp solrquery specifies which fields to return in the resultphp solrquery requests a return of sub results for values within the given facetphp solrquery returns all the facet fieldsphp solrquery returns group fields group.field parameter values php solrquery returns the maximum number of characters of the field to returnphp solrquery returns the number of similar documents to return for each resultphp solrquery returns the maximum word length above which words will be ignoredphp solrquery returns whether or not to include the lower bound in the result setphp solrquery returns whether or not to include the upper bound term in the result setphp solrquery returns the maximum number of terms solr should returnphp solrquery removes a field from the list of fieldsphp solrquery specifies a string prefix with which to limits the terms on which to facetphp solrquery specifies the number of results to return for each group. the server default value is 1php solrquery if true the result of the first field grouping command is used as the main result list in the response using group.format=simplephp solrquery sets the factor by which the regex fragmenter can stray from the ideal fragment sizephp solrquery set the number of similar documents to return for each resultphp solrquery specifies the maximum number of rows to return in the result
关注编程学问公众号