classes/ezsolrdoc.php
public function addField ( $name, $content, $boost = null )
    {
        if ( !is_array( $content ) )
        {
            $content = array( $content );
        }

        if (array_key_exists($name, $this->Doc))
        {
            $this->Doc[$name]['content'] = array_merge($this->Doc[$name]['content'], $content);
        }
        else
        {
            $this->Doc[$name]['content'] =  $content;
        }
        $this->Doc[$name]['boost'] = $boost;
    }
public function addField ( $name, $content, $boost = null )
    {
        if ( !is_array( $content ) )
        {
            $content = array( $content );
        }

        if (array_key_exists($name, $this->Doc))
        {
            $this->Doc[$name]['content'] = array_merge($this->Doc[$name]['content'], $content);
        }
        else
        {
            $this->Doc[$name]['content'] =  $content;
        }
        $this->Doc[$name]['boost'] = $boost;
    }
public function addField ( $ name , $ content , $ boost = null ) { if ( ! is_array ( $ content ) ) { $ content = array ( $ content ) ; } if ( array_key_exists ( $ name , $ this -> Doc ) ) { $ this -> Doc [ $ name ] [ 'content' ] = array_merge ( $ this -> Doc [ $ name ] [ 'content' ] , $ content ) ; } else { $ this -> Doc [ $ name ] [ 'content' ] = $ content ; } $ this -> Doc [ $ name ] [ 'boost' ] = $ boost ; }
Add document field

@param string Field name
@param mixed Field content. $content may be a value or an array containing values.
if the the array has more than one element, the schema declaration must be multi-valued too
@param float Field boost ( optional ).
Add document field