TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\IndexedSearch\Hook\MysqlFulltextIndexHook Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\Hook\MysqlFulltextIndexHook:
tx_indexedsearch_mysql

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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Class that hooks into Indexed Search and replaces standard SQL queries with MySQL fulltext index queries.

Author
Michael Stucki micha.nosp@m.el@t.nosp@m.ypo3..nosp@m.org

Definition at line 21 of file MysqlFulltextIndexHook.php.

Member Function Documentation

◆ getResultRows_SQLpointer()

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

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

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

Definition at line 40 of file MysqlFulltextIndexHook.php.

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

Member Data Documentation

◆ $pObj

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

Definition at line 26 of file MysqlFulltextIndexHook.php.

◆ ANY_PART_OF_THE_WORD

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

Definition at line 28 of file MysqlFulltextIndexHook.php.

◆ FIRST_PART_OF_THE_WORD

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

Definition at line 30 of file MysqlFulltextIndexHook.php.

◆ LAST_PART_OF_THE_WORD

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

Definition at line 29 of file MysqlFulltextIndexHook.php.

◆ SENTENCE

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

Definition at line 32 of file MysqlFulltextIndexHook.php.

◆ SOUNDS_LIKE

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

Definition at line 31 of file MysqlFulltextIndexHook.php.