PHP 클래스 eZ\Publish\Core\Search\Legacy\Content\WordIndexer\Repository\SearchIndex

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler Database handler.

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
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).

메소드 상세

__construct() 공개 메소드

SearchIndex constructor.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler

addWords() 공개 메소드

Insert new words (legacy db table: ezsearch_word).
public addWords ( array $words )
$words array

decrementWordObjectCount() 공개 메소드

Decrease the object count of the given words by one.
public decrementWordObjectCount ( array $wordId )
$wordId array

deleteWordsWithoutObjects() 공개 메소드

Delete words not related to any content object.

getContentObjectWords() 공개 메소드

Get all words related to the content object (legacy db table: ezsearch_object_word_link).
public getContentObjectWords ( $contentId ) : array
$contentId
리턴 array

getWords() 공개 메소드

Fetch already indexed words from database (legacy db table: ezsearch_word).
public getWords ( array $words ) : array
$words array
리턴 array

incrementWordObjectCount() 공개 메소드

Increase the object count of the given words by one.
public incrementWordObjectCount ( array $wordId )
$wordId array

purge() 공개 메소드

Remove entire search index.
public purge ( )

프로퍼티 상세

$dbHandler 보호되어 있는 프로퍼티

Database handler.
protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
리턴 eZ\Publish\Core\Persistence\Database\DatabaseHandler