Свойство | Type | Description | |
---|---|---|---|
$dbHandler | eZ\Publish\Core\Persistence\Database\DatabaseHandler | Database handler. |
Méthode | Description | |
---|---|---|
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler ) | SearchIndex constructor. | |
addObjectWordLink ( $wordId, $contentId, $frequency, $placement, $nextWordId, $prevWordId, $contentTypeId, $fieldTypeId, $published, $sectionId, $identifier, $integerValue ) | Link word with specific content object (legacy db table: ezsearch_object_word_link). | |
addWords ( array $words ) | Insert new words (legacy db table: ezsearch_word). | |
decrementWordObjectCount ( array $wordId ) | Decrease the object count of the given words by one. | |
deleteObjectWordsLink ( $contentId ) | Delete relation between a word and a content object. | |
deleteWordsWithoutObjects ( ) | Delete words not related to any content object. | |
getContentObjectWords ( $contentId ) : array | Get all words related to the content object (legacy db table: ezsearch_object_word_link). | |
getWords ( array $words ) : array | Fetch already indexed words from database (legacy db table: ezsearch_word). | |
incrementWordObjectCount ( array $wordId ) | Increase the object count of the given words by one. | |
purge ( ) | Remove entire search index. |
Méthode | Description | |
---|---|---|
setContentObjectWordsSelectQuery ( eZ\Publish\Core\Persistence\Database\SelectQuery $query ) | Set query selecting word ids for content object (method was extracted to be reusable). | |
updateWordObjectCount ( array $wordId, array $columns ) | Update object count for words (legacy db table: ezsearch_word). |
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler ) | ||
$dbHandler | eZ\Publish\Core\Persistence\Database\DatabaseHandler |
public addObjectWordLink ( $wordId, $contentId, $frequency, $placement, $nextWordId, $prevWordId, $contentTypeId, $fieldTypeId, $published, $sectionId, $identifier, $integerValue ) | ||
$wordId | ||
$contentId | ||
$frequency | ||
$placement | ||
$nextWordId | ||
$prevWordId | ||
$contentTypeId | ||
$fieldTypeId | ||
$published | ||
$sectionId | ||
$identifier | ||
$integerValue |
public decrementWordObjectCount ( array $wordId ) | ||
$wordId | array |
public deleteObjectWordsLink ( $contentId ) | ||
$contentId |
public deleteWordsWithoutObjects ( ) |
public getContentObjectWords ( $contentId ) : array | ||
$contentId | ||
Résultat | array |
public incrementWordObjectCount ( array $wordId ) | ||
$wordId | array |