import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -15,8 +15,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_Search_Lucene
|
||||
* @subpackage Document
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Document.php 16543 2009-07-07 09:44:56Z yoshida@zend.co.jp $
|
||||
*/
|
||||
|
||||
|
||||
@ -30,7 +31,7 @@ require_once 'Zend/Search/Lucene/Field.php';
|
||||
* @category Zend
|
||||
* @package Zend_Search_Lucene
|
||||
* @subpackage Document
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Search_Lucene_Document
|
||||
@ -99,6 +100,7 @@ class Zend_Search_Lucene_Document
|
||||
public function getField($fieldName)
|
||||
{
|
||||
if (!array_key_exists($fieldName, $this->_fields)) {
|
||||
require_once 'Zend/Search/Lucene/Exception.php';
|
||||
throw new Zend_Search_Lucene_Exception("Field name \"$fieldName\" not found in document.");
|
||||
}
|
||||
return $this->_fields[$fieldName];
|
||||
|
Reference in New Issue
Block a user