在线文档教程
PHP
Solr

SolrInputDocument::getField

SolrInputDocument::getField

(PECL solr >= 0.9.2)

SolrInputDocument::getField — Retrieves a field by name

Description

public SolrDocumentField SolrInputDocument::getField ( string $fieldName )

Retrieves a field in the document.

Parameters

fieldName

The name of the field.

Return Values

Returns a SolrDocumentField object on success and FALSE on failure.

← SolrInputDocument::getChildDocumentsCount

SolrInputDocument::getFieldBoost →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/solrinputdocument.getfield.php