Property | Type | Description | |
---|---|---|---|
$documentScore | null | integer | Hit score after querying Elasticsearch. | |
$documentVersion | null | integer | Elasticsearch document version. | |
$isDocument | boolean | Is indexed in elastic search. |
Method | Description | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Handle dynamic method calls into the model. | |
bootSearchable ( ) | Searchable boot model. | |
document ( ) : |
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. |
Method | Description | |
---|---|---|
buildDocumentFromArray ( array $searchable ) : array | Build the document from a searchable array. |
protected buildDocumentFromArray ( array $searchable ) : array | ||
$searchable | array | |
return | array |
public document ( ) : |
||
return |
public getDocumentData ( ) : array | ||
return | array |
public getDocumentIndex ( ) : mixed | ||
return | mixed |
public getDocumentType ( ) : string | ||
return | string |
public shouldSyncDocument ( ) : boolean; | ||
return | boolean; |