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

상속: extends eZ\Publish\Core\Search\Elasticsearch\Content\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$client eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient
$criterionVisitorDispatcher eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher Query criterion visitor dispatcher.
$facetBuilderVisitor eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor Query facet builder visitor.
$indexName string Name of the index in the search backend.
$serializer eZ\Publish\Core\Search\Elasticsearch\Content\Serializer Document serializer.
$sortClauseVisitor eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor Query sort clause visitor.

공개 메소드들

메소드 설명
__construct ( eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient $client, Serializer $serializer, CriterionVisitorDispatcher $criterionVisitorDispatcher, SortClauseVisitor $sortClauseVisitor, FacetBuilderVisitor $facetBuilderVisitor, string $indexName )
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.

메소드 상세

__construct() 공개 메소드

public __construct ( eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient $client, Serializer $serializer, CriterionVisitorDispatcher $criterionVisitorDispatcher, SortClauseVisitor $sortClauseVisitor, FacetBuilderVisitor $facetBuilderVisitor, string $indexName )
$client eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient
$serializer eZ\Publish\Core\Search\Elasticsearch\Content\Serializer
$criterionVisitorDispatcher eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher
$sortClauseVisitor eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor
$facetBuilderVisitor eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor
$indexName string

bulkIndex() 공개 메소드

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

delete() 공개 메소드

Deletes a single document of the given $type by given document $id.
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.
public deleteByQuery ( string $query, string $type )
$query string
$type string

find() 공개 메소드

Finds and returns documents of a given $type for a given $query object.
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.
public findRaw ( string $query, string $type ) : Message
$query string
$type string
리턴 Message

flush() 공개 메소드

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

index() 공개 메소드

Indexes a given $document.
public index ( Document $document )
$document eZ\Publish\Core\Search\Elasticsearch\Content\Document

purgeIndex() 공개 메소드

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

프로퍼티 상세

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

protected HttpClient,eZ\Publish\Core\Search\Elasticsearch\Content\Gateway $client
리턴 eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient

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

Query criterion visitor dispatcher.
protected CriterionVisitorDispatcher,eZ\Publish\Core\Search\Elasticsearch\Content $criterionVisitorDispatcher
리턴 eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher

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

Query facet builder visitor.
protected FacetBuilderVisitor,eZ\Publish\Core\Search\Elasticsearch\Content $facetBuilderVisitor
리턴 eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor

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

Name of the index in the search backend.
protected string $indexName
리턴 string

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

Document serializer.
protected Serializer,eZ\Publish\Core\Search\Elasticsearch\Content $serializer
리턴 eZ\Publish\Core\Search\Elasticsearch\Content\Serializer

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

Query sort clause visitor.
protected SortClauseVisitor,eZ\Publish\Core\Search\Elasticsearch\Content $sortClauseVisitor
리턴 eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor