public function addIndex($text, $entity, $entity_id, $language)
    {
        $values = array(
            'text' => $text,
            'entity' => $entity,
            'language' => $language,
            'entity_id' => $entity_id
        );

        return (bool) $this->db->insert('search_index', $values);
    }
public function addIndex($text, $entity, $entity_id, $language)
    {
        $values = array(
            'text' => $text,
            'entity' => $entity,
            'language' => $language,
            'entity_id' => $entity_id
        );

        return (bool) $this->db->insert('search_index', $values);
    }
public function addIndex ( $ text , $ entity , $ entity_id , $ language ) { $ values = array ( 'text' => $ text , 'entity' => $ entity , 'language' => $ language , 'entity_id' => $ entity_id ) ; return ( bool ) $ this -> db -> insert ( 'search_index' , $ values ) ; }
Adds an item to the search index
@param string $text
@param string $entity
@param integer $entity_id
@param string $language
@return boolean
Adds an item to the search index