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);
        }
    }
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);
        }
    }
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 ) ; } }
Sets an array of search results
Sets an array of search results