Свойство | Тип | Описание | |
---|---|---|---|
$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 ( ) : |
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. |
public static bootSearchable ( ) |
protected buildDocumentFromArray ( array $searchable ) : array | ||
$searchable | array | |
Результат | array |
public document ( ) : |
||
Результат |
public getDocumentData ( ) : array | ||
Результат | array |
public getDocumentIndex ( ) : mixed | ||
Результат | mixed |
public getDocumentType ( ) : string | ||
Результат | string |
public shouldSyncDocument ( ) : boolean; | ||
Результат | boolean; |
public bool $isDocument | ||
Результат | boolean |