protected function _stopWords()
    {
        $conn = $this->_table->find()->connection();
        $cacheKey = $conn->configName() . '_generic_engine_stopwords_list';
        if ($cache = Cache::read($cacheKey, '_cake_model_')) {
            return (array)$cache;
        }

        $words = [];
        $sql = $conn
            ->execute('SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DEFAULT_STOPWORD')
            ->fetchAll('assoc');

        foreach ((array)$sql as $row) {
            if (!empty($row['value'])) {
                $words[] = $row['value'];
            }
        }

        Cache::write($cacheKey, $words, '_cake_model_');

        return $words;
    }
protected function _stopWords()
    {
        $conn = $this->_table->find()->connection();
        $cacheKey = $conn->configName() . '_generic_engine_stopwords_list';
        if ($cache = Cache::read($cacheKey, '_cake_model_')) {
            return (array)$cache;
        }

        $words = [];
        $sql = $conn
            ->execute('SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DEFAULT_STOPWORD')
            ->fetchAll('assoc');

        foreach ((array)$sql as $row) {
            if (!empty($row['value'])) {
                $words[] = $row['value'];
            }
        }

        Cache::write($cacheKey, $words, '_cake_model_');

        return $words;
    }
protected function _stopWords ( ) { $ conn = $ this -> _table -> find ( ) -> connection ( ) ; $ cacheKey = $ conn -> configName ( ) . '_generic_engine_stopwords_list' ; if ( $ cache = Cache :: read ( $ cacheKey , '_cake_model_' ) ) { return ( array ) $ cache ; } $ words = [ ] ; $ sql = $ conn -> execute ( 'SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DEFAULT_STOPWORD' ) -> fetchAll ( 'assoc' ) ; foreach ( ( array ) $ sql as $ row ) { if ( ! empty ( $ row [ 'value' ] ) ) { $ words [ ] = $ row [ 'value' ] ; } } Cache :: write ( $ cacheKey , $ words , '_cake_model_' ) ; return $ words ; }
Gets a list of storage engine's stopwords. That is words that is considered
common or Trivial enough that it is omitted from the search index and ignored
in search queries

@return array List of words
Gets a list of storage engine s stopwords . That is words that is considered common or Trivial enough that it is omitted from the search index and ignored in search queries