Search/SearchProvider.php
public function parse($pattern)
    {
        //reset must be extracted
        $this->mustBeExtracted = array();
        //filter to lower and remove accentued
        $filteredPattern = mb_strtolower($this->remove_accents($pattern));

        $terms = $this->extractTerms($filteredPattern);
        $terms['_domain'] = $this->extractDomain($filteredPattern);
        $terms['_default'] = $this->extractDefault($filteredPattern);

        return $terms;
    }
public function parse($pattern)
    {
        //reset must be extracted
        $this->mustBeExtracted = array();
        //filter to lower and remove accentued
        $filteredPattern = mb_strtolower($this->remove_accents($pattern));

        $terms = $this->extractTerms($filteredPattern);
        $terms['_domain'] = $this->extractDomain($filteredPattern);
        $terms['_default'] = $this->extractDefault($filteredPattern);

        return $terms;
    }
public function parse ( $ pattern ) { //reset must be extracted $ this -> mustBeExtracted = array ( ) ; //filter to lower and remove accentued $ filteredPattern = mb_strtolower ( $ this -> remove_accents ( $ pattern ) ) ; $ terms = $ this -> extractTerms ( $ filteredPattern ) ; $ terms [ '_domain' ] = $ this -> extractDomain ( $ filteredPattern ) ; $ terms [ '_default' ] = $ this -> extractDefault ( $ filteredPattern ) ; return $ terms ; }
parse the search string to extract domain and terms

@param string $pattern
@return string[] an array where the keys are _domain, _default (residual terms) or term
parse the search string to extract domain and terms