class ElasticSearchClient

Class to get Elasticsearch connection. Also used to set and get "index" and "type" in Elasticsearch

Methods

void
setIndex(string $index)

Set Index to Use in Elasticsearch.

void
setType(string $type)

Set Type to use in Elasticsearch

index
getIndex()

Get Index to use in Elasticsearch.

type
getType()

Get Type to use in Elasticsearch.

ClientBuilder
getClient()

Get Elasticsearch Client.

Details

at line 23
void setIndex(string $index)

Set Index to Use in Elasticsearch.

Parameters

string $index

Return Value

void

at line 34
void setType(string $type)

Set Type to use in Elasticsearch

Parameters

string $type

Return Value

void

at line 44
index getIndex()

Get Index to use in Elasticsearch.

Return Value

index

at line 54
type getType()

Get Type to use in Elasticsearch.

Return Value

type

at line 64
ClientBuilder getClient()

Get Elasticsearch Client.

Return Value

ClientBuilder