classes/ezfsolrdocumentfieldbase.php
public function getData()
    {
        $contentClassAttribute = $this->ContentObjectAttribute->attribute( 'contentclass_attribute' );
        $fieldNameArray = array();
        foreach ( array_keys( eZSolr::$fieldTypeContexts ) as $context )
        {
            $fieldNameArray[] = self::getFieldName( $contentClassAttribute, null, $context );
        }
        $fieldNameArray = array_unique( $fieldNameArray );



        $metaData = $this->ContentObjectAttribute->metaData();
        $processedMetaDataArray = array();
        if ( is_array( $metaData ) )
        {
            $processedMetaDataArray = array();
            foreach ( $metaData as $value )
            {
                $processedMetaDataArray[] = $this->preProcessValue( $value,
                                            self::getClassAttributeType( $contentClassAttribute ) );
            }
        }
        else
        {

            $processedMetaDataArray[] = $this->preProcessValue( $metaData,
                                            self::getClassAttributeType( $contentClassAttribute ) );

        }
        $fields = array();
        foreach ( $fieldNameArray as $fieldName )
        {
            $fields[$fieldName] = $processedMetaDataArray ;
        }
        return $fields;
    }
public function getData()
    {
        $contentClassAttribute = $this->ContentObjectAttribute->attribute( 'contentclass_attribute' );
        $fieldNameArray = array();
        foreach ( array_keys( eZSolr::$fieldTypeContexts ) as $context )
        {
            $fieldNameArray[] = self::getFieldName( $contentClassAttribute, null, $context );
        }
        $fieldNameArray = array_unique( $fieldNameArray );



        $metaData = $this->ContentObjectAttribute->metaData();
        $processedMetaDataArray = array();
        if ( is_array( $metaData ) )
        {
            $processedMetaDataArray = array();
            foreach ( $metaData as $value )
            {
                $processedMetaDataArray[] = $this->preProcessValue( $value,
                                            self::getClassAttributeType( $contentClassAttribute ) );
            }
        }
        else
        {

            $processedMetaDataArray[] = $this->preProcessValue( $metaData,
                                            self::getClassAttributeType( $contentClassAttribute ) );

        }
        $fields = array();
        foreach ( $fieldNameArray as $fieldName )
        {
            $fields[$fieldName] = $processedMetaDataArray ;
        }
        return $fields;
    }
public function getData ( ) { $ contentClassAttribute = $ this -> ContentObjectAttribute -> attribute ( 'contentclass_attribute' ) ; $ fieldNameArray = array ( ) ; foreach ( array_keys ( eZSolr :: $ fieldTypeContexts ) as $ context ) { $ fieldNameArray [ ] = self :: getFieldName ( $ contentClassAttribute , null , $ context ) ; } $ fieldNameArray = array_unique ( $ fieldNameArray ) ; $ metaData = $ this -> ContentObjectAttribute -> metaData ( ) ; $ processedMetaDataArray = array ( ) ; if ( is_array ( $ metaData ) ) { $ processedMetaDataArray = array ( ) ; foreach ( $ metaData as $ value ) { $ processedMetaDataArray [ ] = $ this -> preProcessValue ( $ value , self :: getClassAttributeType ( $ contentClassAttribute ) ) ; } } else { $ processedMetaDataArray [ ] = $ this -> preProcessValue ( $ metaData , self :: getClassAttributeType ( $ contentClassAttribute ) ) ; } $ fields = array ( ) ; foreach ( $ fieldNameArray as $ fieldName ) { $ fields [ $ fieldName ] = $ processedMetaDataArray ; } return $ fields ; }
Get data to index, and field name to use.

@since ez find 2.2: indexed values to be context aware
different fields may be used for searching, sorting and faceting

@return array Associative array with field name and field value.
Field value can be an array.

Example 1:
<code>
array( 'field_name_i' => 123 );
</code>

Example 2:
<code>
array( 'field_name_i' => array( "1", 2, '3' ) );
</code>
Get data to index and field name to use .