array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'solrquery.addfield.php', 1 => 'SolrQuery::addField', 2 => 'Specifies which fields to return in the result', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.addfacetquery.php', 1 => 'SolrQuery::addFacetQuery', ), 'next' => array ( 0 => 'solrquery.addfilterquery.php', 1 => 'SolrQuery::addFilterQuery', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/addfield.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::addField

(PECL solr >= 0.9.2)

SolrQuery::addFieldSpecifies which fields to return in the result

Beschreibung

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.

Parameter-Liste

field

The name of the field

Rückgabewerte

Returns the current SolrQuery object