array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'solrdocument.fieldexists.php', 1 => 'SolrDocument::fieldExists', 2 => 'Checks if a field exists in the document', ), 'up' => array ( 0 => 'class.solrdocument.php', 1 => 'SolrDocument', ), 'prev' => array ( 0 => 'solrdocument.destruct.php', 1 => 'SolrDocument::__destruct', ), 'next' => array ( 0 => 'solrdocument.get.php', 1 => 'SolrDocument::__get', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrdocument/fieldexists.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrDocument::fieldExists

(PECL solr >= 0.9.2)

SolrDocument::fieldExistsChecks if a field exists in the document

Açıklama

public SolrDocument::fieldExists(string $fieldName): bool

Checks if the requested field as a valid fieldname in the document.

Bağımsız Değişkenler

fieldName

The name of the field.

Dönen Değerler

Returns true if the field is present and false if it does not.