/** * Returns list of columns from fulltext index (doesn't support more then one FTI per table) * * @param AbstractDb $collection * @param string $indexTable * @return array */ protected function getFulltextIndexColumns(AbstractDb $collection, $indexTable) { $indexes = $collection->getConnection()->getIndexList($indexTable); foreach ($indexes as $index) { if (strtoupper($index['INDEX_TYPE']) == 'FULLTEXT') { return $index['COLUMNS_LIST']; } } return []; }