Свойство | Тип | Описание | |
---|---|---|---|
$index |
Свойство | Тип | Описание | |
---|---|---|---|
$algolia |
Метод | Описание | |
---|---|---|
__construct ( |
||
clearIndex ( ) : mixed | Remove everything from the index. | |
getClient ( ) : |
Get the underlying client. | |
getResults ( string | array | |
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. | |
setIndexName ( $indexName ) | Set the name of the index that should be used by default. | |
upsertToIndex ( Spatie\SearchIndex\Searchable | array | Traversabl\Traversable $subject ) | Add or update the given searchable subject or array of subjects or Traversable object containing subjects. |
Метод | Описание | |
---|---|---|
getAlgoliaId ( Spatie\SearchIndex\Searchable $subject ) : string | Get the id parameter that is used by Algolia as an array. |
public clearIndex ( ) : mixed | ||
Результат | mixed |
protected getAlgoliaId ( Spatie\SearchIndex\Searchable $subject ) : string | ||
$subject | Spatie\SearchIndex\Searchable | |
Результат | string |
public getClient ( ) : |
||
Результат |
public removeFromIndex ( Spatie\SearchIndex\Searchable $subject ) | ||
$subject | Spatie\SearchIndex\Searchable |
public removeFromIndexByTypeAndId ( string $type, integer $id ) | ||
$type | string | |
$id | integer |
public setIndexName ( $indexName ) | ||
$indexName |
public upsertToIndex ( Spatie\SearchIndex\Searchable | array | Traversabl\Traversable $subject ) | ||
$subject | Spatie\SearchIndex\Searchable | array | Traversabl\Traversable |