![]() |
Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
index ($item, $format='html') | |
optimize () | |
![]() | |
__construct () | |
index ($item, $format='html') | |
remove ($linkId) | |
optimize () | |
Fonctions membres protégées | |
toggleTables ($memory) | |
![]() | |
tokenizeToDb ($input, $context, $lang, $format) | |
addTokensToDb ($tokens, $context='') | |
toggleTables ($memory) | |
Membres hérités additionnels | |
![]() | |
static | getInstance () |
static | getState () |
static | setState ($data) |
static | resetState () |
![]() | |
const | TITLE_CONTEXT = 1 |
const | TEXT_CONTEXT = 2 |
const | META_CONTEXT = 3 |
const | PATH_CONTEXT = 4 |
const | MISC_CONTEXT = 5 |
![]() | |
static | $state |
static | $profiler |
![]() | |
static | getSignature ($item) |
![]() | |
$db | |
$addTokensToDbQueryTemplate | |
Indexer class supporting MySQL(i) for the Finder indexer package.
The indexer class provides the core functionality of the Finder search engine. It is responsible for adding and updating the content links table; extracting and scoring tokens; and maintaining all referential information for the content.
Note: All exceptions thrown from within this class should be caught by the controller.
index | ( | $item, | |
$format = 'html' |
|||
) |
Method to index a content item.
FinderIndexerResult | $item | The content item to index. |
string | $format | The format of the content. [optional] |
Exception | on database error. |
Références $context, $count, $db, $format, $i, $item, $link, $query, $state, $suffix, FinderIndexerTaxonomy\addMap(), FinderIndexerTaxonomy\addNode(), null, FinderIndexerHelper\parse(), FinderIndexerTaxonomy\removeMaps(), et true.
optimize | ( | ) |
Method to optimize the index. We use this method to remove unused terms and any other optimizations that might be necessary.
Exception | on database error. |
Références $db, $i, $query, et FinderIndexerTaxonomy\removeOrphanNodes().
|
protected |
Method to switch the token tables from Memory tables to MyISAM tables when they are close to running out of memory.
boolean | $memory | Flag to control how they should be toggled. |
Exception | on database error. |