original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Sets an item to the search index
  @param string $text
  @param string $entity
  @param integer $entity_id
  @param string $language
  @return boolean
docstring_tokens: Sets an item to the search index