메소드 |
설명 |
|
__construct ( Client $client, string $name ) |
Creates a new index object. |
|
addAlias ( string $name, boolean $replace = false ) : Response |
Adds an alias to the current index. |
|
addDocuments ( array $docs ) : ResponseSet |
Uses _bulk to send documents to the server. |
|
analyze ( string $text, array $args = [] ) : array |
Analyzes a string. |
|
clearCache ( ) : Response |
Clears the cache of an index. |
|
close ( ) : Response |
Closes the index. |
|
count ( string | array | Query $query = '' ) : integer |
Counts results of query. |
|
create ( array $args = [], boolean | array $options = null ) : Response |
Creates a new index with the given arguments. |
|
createSearch ( string | array | Query $query = '', integer | array $options = null, Elastica\ResultSet\BuilderInterface $builder = null ) : Search |
|
|
delete ( ) : Response |
Deletes the index. |
|
deleteByQuery ( Query | string | array $query, array $options = [] ) : Response |
Deletes entries in the db based on a query. |
|
deleteDocuments ( array $docs ) : ResponseSet |
Uses _bulk to delete documents from the server. |
|
exists ( ) : boolean |
Checks if the given index is already created. |
|
flush ( $options = [] ) : Response |
Flushes the index to storage. |
|
forcemerge ( array $args = [] ) : array |
Force merges index. |
|
getAliases ( ) : array |
Returns all index aliases. |
|
getClient ( ) : Client |
Returns index client. |
|
getMapping ( ) : array |
Gets all the type mappings for an index. |
|
getName ( ) : string |
Returns the index name. |
|
getSettings ( ) : Settings |
Returns the index settings object. |
|
getStats ( ) : Stats |
Return Index Stats. |
|
getType ( string $type ) : Type |
Returns a type object for the current index with the given name. |
|
hasAlias ( string $name ) : boolean |
Checks if the index has the given alias. |
|
open ( ) : Response |
Opens an index. |
|
optimize ( array $args = [] ) : array |
Optimizes search index. |
|
refresh ( ) : Response |
Refreshes the index. |
|
removeAlias ( string $name ) : Response |
Removes an alias pointing to the current index. |
|
request ( string $path, string $method, array | string $data = [], array $query = [] ) : Response |
Makes calls to the elasticsearch server based on this index. |
|
search ( string | array | Query $query = '', integer | array $options = null ) : ResultSet |
Searches in this index. |
|
setSettings ( array $data ) : Response |
Can be used to change settings during runtime. One example is to use it for bulk updating. |
|
updateDocuments ( array $docs ) : ResponseSet |
Uses _bulk to send documents to the server. |
|