Php/docs/solrinputdocument.fieldexists

来自菜鸟教程
跳转至:导航、​搜索

SolrInputDocument::fieldExists

(PECL solr >= 0.9.2)

SolrInputDocument::fieldExistsChecks if a field exists


说明

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

Checks if a field exists


参数

fieldName
Name of the field.


返回值

Returns true if the field was found and false if it was not found.