public function setIndex($text, $entity, $entity_id, $language)
    {
        $this->deleteIndex($entity, $entity_id, $language);

        if (empty($text)) {
            return false;
        }

        return $this->addIndex($text, $entity, $entity_id, $language);
    }
public function setIndex($text, $entity, $entity_id, $language)
    {
        $this->deleteIndex($entity, $entity_id, $language);

        if (empty($text)) {
            return false;
        }

        return $this->addIndex($text, $entity, $entity_id, $language);
    }
public function setIndex ( $ text , $ entity , $ entity_id , $ language ) { $ this -> deleteIndex ( $ entity , $ entity_id , $ language ) ; if ( empty ( $ text ) ) { return false ; } return $ this -> addIndex ( $ text , $ entity , $ entity_id , $ language ) ; }
Sets an item to the search index
@param string $text
@param string $entity
@param integer $entity_id
@param string $language
@return boolean
Sets an item to the search index