class Mapping

Class to create Maps on Elasticsearch

Methods

void
__construct()

Creating $client for Elasticsearch.

createMapping(array $map)

Create mapping for Elasticsearch.

deleteMapping($index)

Delete the previous mapping by passing its name

Details

at line 19
void __construct()

Creating $client for Elasticsearch.

Return Value

void

at line 29
ElasticSearchClient createMapping(array $map)

Create mapping for Elasticsearch.

Parameters

array $map An array of elasticsearch mapping

Return Value

ElasticSearchClient

at line 46
ElasticSearchClient deleteMapping($index)

Delete the previous mapping by passing its name

Parameters

$index Name of an exisiting index to delete

Return Value

ElasticSearchClient