public function norm($id, $fieldName)
    {
        $fieldNum = $this->getFieldNum($fieldName);

        if ( !($this->_fields[$fieldNum]->isIndexed) ) {
            return null;
        }

        if (!isset($this->_norms[$fieldNum])) {
            $this->_loadNorm($fieldNum);
        }

        return Zend_Search_Lucene_Search_Similarity::decodeNorm( ord($this->_norms[$fieldNum][$id]) );
    }
public function norm($id, $fieldName)
    {
        $fieldNum = $this->getFieldNum($fieldName);

        if ( !($this->_fields[$fieldNum]->isIndexed) ) {
            return null;
        }

        if (!isset($this->_norms[$fieldNum])) {
            $this->_loadNorm($fieldNum);
        }

        return Zend_Search_Lucene_Search_Similarity::decodeNorm( ord($this->_norms[$fieldNum][$id]) );
    }
public function norm ( $ id , $ fieldName ) { $ fieldNum = $ this -> getFieldNum ( $ fieldName ) ; if ( ! ( $ this -> _fields [ $ fieldNum ] -> isIndexed ) ) { return null ; } if ( ! isset ( $ this -> _norms [ $ fieldNum ] ) ) { $ this -> _loadNorm ( $ fieldNum ) ; } return Zend_Search_Lucene_Search_Similarity :: decodeNorm ( ord ( $ this -> _norms [ $ fieldNum ] [ $ id ] ) ) ; }
Returns normalization factor for specified documents

@param integer $id
@param string $fieldName
@return float
Returns normalization factor for specified documents