PHP Class TeamTNT\TNTSearch\Indexer\TNTIndexer

Afficher le fichier Open project: teamtnt/tntsearch Class Usage Examples

Méthodes publiques

Свойство Type Description
$config
$disableOutput
$filereader
$inMemory
$indexName
$stemmer
$steps
$tokenizer

Protected Properties

Свойство Type Description
$dbh
$decodeHTMLEntities
$inMemoryTerms
$index
$primaryKey
$query
$wordlist

Méthodes publiques

Méthode 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 méthode

public __construct ( )

breakIntoTokens() public méthode

public breakIntoTokens ( $text )

buildDictionary() public méthode

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

buildTrigrams() public méthode

public buildTrigrams ( $keyword )

countDocHitsInWordList() public méthode

public countDocHitsInWordList ( $word )

countWordInWordList() public méthode

public countWordInWordList ( $word )

createConnector() public méthode

public createConnector ( array $config )
$config array

createIndex() public méthode

public createIndex ( $indexName )

decodeHtmlEntities() public méthode

public decodeHtmlEntities ( $value = true )

delete() public méthode

public delete ( $documentId )

getPrimaryKey() public méthode

public getPrimaryKey ( )

getStemmer() public méthode

public getStemmer ( )

getStoragePath() public méthode

public getStoragePath ( )

getWordFromWordList() public méthode

public getWordFromWordList ( $word )

indexBeginTransaction() public méthode

indexEndTransaction() public méthode

public indexEndTransaction ( )

info() public méthode

public info ( $text )

insert() public méthode

public insert ( $document )

loadConfig() public méthode

public loadConfig ( $config )

prepareAndExecuteStatement() public méthode

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

processDocument() public méthode

public processDocument ( $row )

query() public méthode

public query ( $query )

readDocumentsFromFileSystem() public méthode

run() public méthode

public run ( )

saveDoclist() public méthode

public saveDoclist ( $terms, $docId )

saveHitList() public méthode

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

saveToIndex() public méthode

public saveToIndex ( $stems, $docId )

saveWordlist() public méthode

public saveWordlist ( $stems )

setCroatianStemmer() public méthode

public setCroatianStemmer ( )

setDatabaseHandle() public méthode

public setDatabaseHandle ( PDO $dbh )
$dbh PDO

setFileReader() public méthode

public setFileReader ( $filereader )

setIndex() public méthode

public setIndex ( $index )

setLanguage() public méthode

public setLanguage ( $language = 'porter' )

setPrimaryKey() public méthode

public setPrimaryKey ( $primaryKey )

setStemmer() public méthode

public setStemmer ( $stemmer )

setTokenizer() public méthode

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

stemText() public méthode

public stemText ( $text )

totalDocumentsInCollection() public méthode

update() public méthode

public update ( $id, $document )

updateInfoTable() public méthode

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