PHP Class TeamTNT\TNTSearch\Indexer\TNTIndexer

Mostrar archivo Open project: teamtnt/tntsearch Class Usage Examples

Public Properties

Property Type Description
$config
$disableOutput
$filereader
$inMemory
$indexName
$stemmer
$steps
$tokenizer

Protected Properties

Property Type Description
$dbh
$decodeHTMLEntities
$inMemoryTerms
$index
$primaryKey
$query
$wordlist

Public Methods

Method Description
__construct ( )
breakIntoTokens ( $text )
buildDictionary ( $filename, $count, $hits = true, $docs = false )
buildTrigrams ( $keyword )
countDocHitsInWordList ( $word )
countWordInWordList ( $word )
createConnector ( array $config )
createIndex ( $indexName )
decodeHtmlEntities ( $value = true )
delete ( $documentId )
getPrimaryKey ( )
getStemmer ( )
getStoragePath ( )
getWordFromWordList ( $word )
indexBeginTransaction ( )
indexEndTransaction ( )
info ( $text )
insert ( $document )
loadConfig ( $config )
prepareAndExecuteStatement ( $query, $params = [] )
processDocument ( $row )
query ( $query )
readDocumentsFromFileSystem ( )
run ( )
saveDoclist ( $terms, $docId )
saveHitList ( $stems, $docId, $termsList )
saveToIndex ( $stems, $docId )
saveWordlist ( $stems )
setCroatianStemmer ( )
setDatabaseHandle ( PDO $dbh )
setFileReader ( $filereader )
setIndex ( $index )
setLanguage ( $language = 'porter' )
setPrimaryKey ( $primaryKey )
setStemmer ( $stemmer )
setTokenizer ( TeamTNT\TNTSearch\Support\TokenizerInterface $tokenizer )
stemText ( $text )
totalDocumentsInCollection ( )
update ( $id, $document )
updateInfoTable ( $key, $value )

Method Details

__construct() public method

public __construct ( )

breakIntoTokens() public method

public breakIntoTokens ( $text )

buildDictionary() public method

public buildDictionary ( $filename, $count, $hits = true, $docs = false )

buildTrigrams() public method

public buildTrigrams ( $keyword )

countDocHitsInWordList() public method

public countDocHitsInWordList ( $word )

countWordInWordList() public method

public countWordInWordList ( $word )

createConnector() public method

public createConnector ( array $config )
$config array

createIndex() public method

public createIndex ( $indexName )

decodeHtmlEntities() public method

public decodeHtmlEntities ( $value = true )

delete() public method

public delete ( $documentId )

getPrimaryKey() public method

public getPrimaryKey ( )

getStemmer() public method

public getStemmer ( )

getStoragePath() public method

public getStoragePath ( )

getWordFromWordList() public method

public getWordFromWordList ( $word )

indexBeginTransaction() public method

indexEndTransaction() public method

public indexEndTransaction ( )

info() public method

public info ( $text )

insert() public method

public insert ( $document )

loadConfig() public method

public loadConfig ( $config )

prepareAndExecuteStatement() public method

public prepareAndExecuteStatement ( $query, $params = [] )

processDocument() public method

public processDocument ( $row )

query() public method

public query ( $query )

readDocumentsFromFileSystem() public method

run() public method

public run ( )

saveDoclist() public method

public saveDoclist ( $terms, $docId )

saveHitList() public method

public saveHitList ( $stems, $docId, $termsList )

saveToIndex() public method

public saveToIndex ( $stems, $docId )

saveWordlist() public method

public saveWordlist ( $stems )

setCroatianStemmer() public method

public setCroatianStemmer ( )

setDatabaseHandle() public method

public setDatabaseHandle ( PDO $dbh )
$dbh PDO

setFileReader() public method

public setFileReader ( $filereader )

setIndex() public method

public setIndex ( $index )

setLanguage() public method

public setLanguage ( $language = 'porter' )

setPrimaryKey() public method

public setPrimaryKey ( $primaryKey )

setStemmer() public method

public setStemmer ( $stemmer )

setTokenizer() public method

public setTokenizer ( TeamTNT\TNTSearch\Support\TokenizerInterface $tokenizer )
$tokenizer TeamTNT\TNTSearch\Support\TokenizerInterface

stemText() public method

public stemText ( $text )

totalDocumentsInCollection() public method

update() public method

public update ( $id, $document )

updateInfoTable() public method

public updateInfoTable ( $key, $value )

Property Details

$config public_oe property

public $config

$dbh protected_oe property

protected $dbh

$decodeHTMLEntities protected_oe property

protected $decodeHTMLEntities

$disableOutput public_oe property

public $disableOutput

$filereader public_oe property

public $filereader

$inMemory public_oe property

public $inMemory

$inMemoryTerms protected_oe property

protected $inMemoryTerms

$index protected_oe property

protected $index

$indexName public_oe property

public $indexName

$primaryKey protected_oe property

protected $primaryKey

$query protected_oe property

protected $query

$stemmer public_oe property

public $stemmer

$steps public_oe property

public $steps

$tokenizer public_oe property

public $tokenizer

$wordlist protected_oe property

protected $wordlist