PHP Интерфейс Spatie\SearchIndex\SearchIndexHandler

Показать файл Открыть проект

Открытые методы

Метод Описание
clearIndex ( ) : mixed Remove everything from the index.
getClient ( ) : mixed Get the underlying client.
getResults ( $query ) : mixed Get the results for the given query.
removeFromIndex ( Spatie\SearchIndex\Searchable $subject ) Remove the given subject from the search index.
removeFromIndexByTypeAndId ( string $type, integer $id ) Remove an item from the search index by type and id.
upsertToIndex ( Spatie\SearchIndex\Searchable | array | Traversable $subject ) Add or update the given searchable subject or array of subjects or Traversable object containing subjects.

Описание методов

clearIndex() публичный Метод

Remove everything from the index.
public clearIndex ( ) : mixed
Результат mixed

getClient() публичный Метод

Get the underlying client.
public getClient ( ) : mixed
Результат mixed

getResults() публичный Метод

Get the results for the given query.
public getResults ( $query ) : mixed
$query
Результат mixed

removeFromIndex() публичный Метод

Remove the given subject from the search index.
public removeFromIndex ( Spatie\SearchIndex\Searchable $subject )
$subject Spatie\SearchIndex\Searchable

removeFromIndexByTypeAndId() публичный Метод

Remove an item from the search index by type and id.
public removeFromIndexByTypeAndId ( string $type, integer $id )
$type string
$id integer

upsertToIndex() публичный Метод

Add or update the given searchable subject or array of subjects or Traversable object containing subjects.
public upsertToIndex ( Spatie\SearchIndex\Searchable | array | Traversable $subject )
$subject Spatie\SearchIndex\Searchable | array | Traversable