![]() |
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') | |
remove ($linkId) | |
optimize () | |
![]() | |
__construct () | |
index ($item, $format='html') | |
remove ($linkId) | |
optimize () | |
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 |
![]() | |
tokenizeToDb ($input, $context, $lang, $format) | |
addTokensToDb ($tokens, $context='') | |
toggleTables ($memory) | |
![]() | |
static | getSignature ($item) |
![]() | |
$db | |
$addTokensToDbQueryTemplate | |
Indexer class supporting SQL Server 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, $query, et FinderIndexerTaxonomy\removeOrphanNodes().
remove | ( | $linkId | ) |
Method to remove a link from the index.
integer | $linkId | The id of the link. |
Exception | on database error. |
Références $db, $i, $query, FinderIndexerTaxonomy\removeMaps(), et FinderIndexerTaxonomy\removeOrphanNodes().