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 cubrid mysql 兼容性函数 get column information from a result and return as an objectphp cubrid 函数 return the number of columns in the result setphp cubrid mysql 兼容性函数 return the number of columns in the result setphp frontbase 函数 get column information from a result and return as an objectphp frontbase 函数 list frontbase result fieldsphp ldap 函数 return first result idphp socket 函数 queries the remote side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp socket 函数 queries the local side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp mysqli stmt return the number of rows in statements result setphp solrquery specifies which fields to return in the resultphp solrquery returns the number of similar documents to return for each resultphp solrquery returns all the fields to use for similarityphp solrquery returns the field from which the terms are retrievedphp solrquery specifies a string prefix with which to limits the terms on which to facetphp solrquery sets the group format result structure group.format parameter php solrquery specifies the number of results to return for each group. the server default value is 1php solrquery set the number of similar documents to return for each resultphp solrquery specifies the maximum number of rows to return in the resultphp solrquery return the raw characters of the indexed termphp solrquery specifies how to sort the returned terms
关注编程学问公众号