메소드 |
설명 |
|
__construct ( Elasticsearch\Client $elasticsearch ) |
|
|
clearIndex ( ) : mixed |
Remove everything from the index. |
|
getClient ( ) : Elasticsearch |
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. |
|