PHP 클래스 eZ\Publish\Core\Search\Elasticsearch\Content\Gateway

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

공개 메소드들

메소드 설명
bulkIndex ( array $documents ) Performs bulk index of a given array of documents.
delete ( integer | string $id, string $type ) Deletes a single document of the given $type by given document $id.
deleteByQuery ( string $query, string $type ) Deletes a document(s) of the given $type by given $query string.
find ( eZ\Publish\API\Repository\Values\Content\Query $query, string $type, array $languageFilter = [] ) : mixed Finds and returns documents of a given $type for a given $query object.
findRaw ( string $query, string $type ) : Message Finds and returns documents of a given $type for a given $query string.
flush ( ) Flushes data from memory to the index storage.
index ( Document $document ) Indexes a given $document.
purgeIndex ( string $type ) Deletes all documents of a given $type from the index.

메소드 상세

bulkIndex() 추상적인 공개 메소드

Performs bulk index of a given array of documents.
abstract public bulkIndex ( array $documents )
$documents array

delete() 추상적인 공개 메소드

Deletes a single document of the given $type by given document $id.
abstract public delete ( integer | string $id, string $type )
$id integer | string
$type string

deleteByQuery() 추상적인 공개 메소드

Deletes a document(s) of the given $type by given $query string.
abstract public deleteByQuery ( string $query, string $type )
$query string
$type string

find() 추상적인 공개 메소드

Finds and returns documents of a given $type for a given $query object.
abstract public find ( eZ\Publish\API\Repository\Values\Content\Query $query, string $type, array $languageFilter = [] ) : mixed
$query eZ\Publish\API\Repository\Values\Content\Query
$type string
$languageFilter array
리턴 mixed

findRaw() 추상적인 공개 메소드

Finds and returns documents of a given $type for a given $query string.
abstract public findRaw ( string $query, string $type ) : Message
$query string
$type string
리턴 eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\Message

flush() 추상적인 공개 메소드

Flushes data from memory to the index storage.
abstract public flush ( )

index() 추상적인 공개 메소드

Indexes a given $document.
abstract public index ( Document $document )
$document Document

purgeIndex() 추상적인 공개 메소드

Deletes all documents of a given $type from the index.
abstract public purgeIndex ( string $type )
$type string