original_string: protected function setResultsSearch()
      {
          $options = array(
              'status' => 1,
              'entity' => 'product',
              'limit' => $this->data_limit,
              'language' => $this->langcode,
              'store_id' => $this->store_id
          );
  
          $options += $this->query_filter;
  
          $this->data_results = $this->search->search('product', $this->data_term, $options);
  
          if (!empty($this->data_results)) {
  
              settype($this->data_results, 'array');
  
              $options['placeholder'] = true;
              $this->prepareEntityItems($this->data_results, $options);
          }
      }
code: protected function setResultsSearch()
      {
          $options = array(
              'status' => 1,
              'entity' => 'product',
              'limit' => $this->data_limit,
              'language' => $this->langcode,
              'store_id' => $this->store_id
          );
  
          $options += $this->query_filter;
  
          $this->data_results = $this->search->search('product', $this->data_term, $options);
  
          if (!empty($this->data_results)) {
  
              settype($this->data_results, 'array');
  
              $options['placeholder'] = true;
              $this->prepareEntityItems($this->data_results, $options);
          }
      }
code_tokens: protected function setResultsSearch ( ) { $ options = array ( 'status' => 1 , 'entity' => 'product' , 'limit' => $ this -> data_limit , 'language' => $ this -> langcode , 'store_id' => $ this -> store_id ) ; $ options += $ this -> query_filter ; $ this -> data_results = $ this -> search -> search ( 'product' , $ this -> data_term , $ options ) ; if ( ! empty ( $ this -> data_results ) ) { settype ( $ this -> data_results , 'array' ) ; $ options [ 'placeholder' ] = true ; $ this -> prepareEntityItems ( $ this -> data_results , $ options ) ; } }
docstring: Sets an array of search results
docstring_tokens: Sets an array of search results