PHP 트레잇 Sleimanx2\Plastic\Searchable

파일 보기 프로젝트 열기: sleimanx2/plastic

공개 프로퍼티들

프로퍼티 타입 설명
$documentScore null | integer Hit score after querying Elasticsearch.
$documentVersion null | integer Elasticsearch document version.
$isDocument boolean Is indexed in elastic search.

공개 메소드들

메소드 설명
__call ( string $method, array $parameters ) : mixed Handle dynamic method calls into the model.
bootSearchable ( ) Searchable boot model.
document ( ) : EloquentPersistence Start an elastic persistence query builder.
getDocumentData ( ) : array Build the document data with the appropriate method.
getDocumentIndex ( ) : mixed Get the model elastic index if available.
getDocumentType ( ) : string Get the model elastic type.
shouldSyncDocument ( ) : boolean; Checks if the model content should be auto synced with elastic.

보호된 메소드들

메소드 설명
buildDocumentFromArray ( array $searchable ) : array Build the document from a searchable array.

메소드 상세

__call() 공개 메소드

Handle dynamic method calls into the model.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
리턴 mixed

bootSearchable() 공개 정적인 메소드

Searchable boot model.
public static bootSearchable ( )

buildDocumentFromArray() 보호된 메소드

Build the document from a searchable array.
protected buildDocumentFromArray ( array $searchable ) : array
$searchable array
리턴 array

document() 공개 메소드

Start an elastic persistence query builder.
public document ( ) : EloquentPersistence
리턴 Sleimanx2\Plastic\Persistence\EloquentPersistence

getDocumentData() 공개 메소드

Build the document data with the appropriate method.
public getDocumentData ( ) : array
리턴 array

getDocumentIndex() 공개 메소드

Get the model elastic index if available.
public getDocumentIndex ( ) : mixed
리턴 mixed

getDocumentType() 공개 메소드

Get the model elastic type.
public getDocumentType ( ) : string
리턴 string

shouldSyncDocument() 공개 메소드

Checks if the model content should be auto synced with elastic.
public shouldSyncDocument ( ) : boolean;
리턴 boolean;

프로퍼티 상세

$documentScore 공개적으로 프로퍼티

Hit score after querying Elasticsearch.
public null|int $documentScore
리턴 null | integer

$documentVersion 공개적으로 프로퍼티

Elasticsearch document version.
public null|int $documentVersion
리턴 null | integer

$isDocument 공개적으로 프로퍼티

Is indexed in elastic search.
public bool $isDocument
리턴 boolean