Свойство | Тип | Описание | |
---|---|---|---|
$elasticsearch | |||
$indexName | string |
Метод | Описание | |
---|---|---|
__construct ( Elasticsearch\Client $elasticsearch ) | ||
clearIndex ( ) : mixed | Remove everything from the index. | |
getClient ( ) : |
Get the underlying client. | |
getResults ( array $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. | |
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. |
public __construct ( Elasticsearch\Client $elasticsearch ) | ||
$elasticsearch | Elasticsearch\Client |
public clearIndex ( ) : mixed | ||
Результат | mixed |
public getClient ( ) : |
||
Результат |
public getResults ( array $query ) : mixed | ||
$query | array | |
Результат | mixed |
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 |
protected Elasticsearch,Spatie\SearchIndex\SearchIndexHandlers $elasticsearch | ||
Результат |