Method |
Description |
|
__construct ( Client $client = null ) |
Creates index object with client connection. |
|
convertDate ( integer $date ) : string |
Converts given time to format: 1995-12-31T23:59:59Z. |
|
count ( string | array | Query $query = '' ) : integer |
Count docs in the type based on query. |
|
create ( boolean $recreate = false ) |
Creates the index and sets the mapping for this type. |
|
createSearch ( string | Query $query = '', array | integer $options = null ) : Search |
|
|
getIndex ( ) : Index |
Returns the search index. |
|
getType ( ) : Type |
Returns type object. |
|
search ( string | array | Query $query = '', null $options = null ) : ResultSet |
Search on the type. |
|