Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater Class Reference

Public Member Functions

 __construct (Database $connection, SearchTable $searchTable, TextSanitizer $textSanitizer)
 
 getSearchTable ()
 
 isEnabled ()
 
 getPropertyTables ()
 
 optimize ()
 
 exists ($sid, $pid)
 
 read ($sid, $pid)
 
 update ($sid, $pid, $text)
 
 insert ($sid, $pid)
 
 delete ($sid, $pid)
 
 flushTable ()
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::__construct ( Database  $connection,
SearchTable  $searchTable,
TextSanitizer  $textSanitizer 
)
Since
2.5
Parameters
Database$connection
SearchTable$searchTable
TextSanitizer$textSanitizer

Member Function Documentation

SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::delete (   $sid,
  $pid 
)
Since
2.5
Parameters
integer$sid
integer$pid
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::exists (   $sid,
  $pid 
)
Since
2.5
Parameters
integer$sid
integer$pid
Returns
boolean
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::flushTable ( )
Since
2.5
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::getPropertyTables ( )
Since
2.5
Returns
array
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::getSearchTable ( )
Since
2.5
Returns
SearchTable
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::insert (   $sid,
  $pid 
)
Since
2.5
Parameters
integer$sid
integer$pid
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::isEnabled ( )
Since
2.5
Returns
boolean
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::optimize ( )
See also
http://dev.mysql.com/doc/refman/5.7/en/fulltext-fine-tuning.html
http://dev.mysql.com/doc/refman/5.7/en/optimize-table.html

"Running OPTIMIZE TABLE on a table with a full-text index rebuilds the full-text index, removing deleted Document IDs and consolidating multiple entries for the same word, where possible."

Since
2.5
Returns
boolean
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::read (   $sid,
  $pid 
)
Since
2.5
Parameters
integer$sid
integer$pid
Returns
false|string
SMW\SQLStore\QueryEngine\Fulltext\SearchTableUpdater::update (   $sid,
  $pid,
  $text 
)
Since
2.5
Parameters
integer$sid
integer$pid
string$text

The documentation for this class was generated from the following file: