TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook Class Reference

Public Member Functions

 getResultRows_SQLpointer ($searchWordsArray, $freeIndexUid=-1)
 

Public Attributes

 $pObj
 
const ANY_PART_OF_THE_WORD = '1'
 
const LAST_PART_OF_THE_WORD = '2'
 
const FIRST_PART_OF_THE_WORD = '3'
 
const SOUNDS_LIKE = '10'
 
const SENTENCE = '20'
 

Detailed Description

Class that hooks into Indexed Search and replaces standard SQL queries with MySQL fulltext index queries.

Definition at line 20 of file MysqlFulltextIndexHook.php.

Member Function Documentation

◆ getResultRows_SQLpointer()

TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::getResultRows_SQLpointer (   $searchWordsArray,
  $freeIndexUid = -1 
)

Gets a SQL result pointer to traverse for the search records.

Parameters
array$searchWordsArraySearch words
int$freeIndexUidPointer to which indexing configuration you want to search in. -1 means no filtering. 0 means only regular indexed content.
Returns
bool||object MySQLi result object / DBAL object

Definition at line 39 of file MysqlFulltextIndexHook.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Data Documentation

◆ $pObj

TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::$pObj

Definition at line 25 of file MysqlFulltextIndexHook.php.

◆ ANY_PART_OF_THE_WORD

const TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::ANY_PART_OF_THE_WORD = '1'

Definition at line 27 of file MysqlFulltextIndexHook.php.

◆ FIRST_PART_OF_THE_WORD

const TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::FIRST_PART_OF_THE_WORD = '3'

Definition at line 29 of file MysqlFulltextIndexHook.php.

◆ LAST_PART_OF_THE_WORD

const TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::LAST_PART_OF_THE_WORD = '2'

Definition at line 28 of file MysqlFulltextIndexHook.php.

◆ SENTENCE

const TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::SENTENCE = '20'

Definition at line 31 of file MysqlFulltextIndexHook.php.

◆ SOUNDS_LIKE

const TYPO3\CMS\IndexedSearchMysql\Hook\MysqlFulltextIndexHook::SOUNDS_LIKE = '10'

Definition at line 30 of file MysqlFulltextIndexHook.php.