$_mapping
$_mapping : array
Mapping.
Elastica Mapping object.
$_type : \Elastica\Type
Type.
__construct(\Elastica\Type $type = null, array $properties = array())
Construct Mapping.
\Elastica\Type | $type | OPTIONAL Type object |
array | $properties | OPTIONAL Properties |
setType(\Elastica\Type $type) : $this
Sets the mapping type Enter description here .
..
\Elastica\Type | $type | Type object |
getType() : \Elastica\Type
Returns mapping type.
Type
send(array $query = array()) : \Elastica\Response
Submits the mapping and sends it to the server.
array | $query | Query string parameters to send with mapping |
Response object
create(array|\Elastica\Type\Mapping $mapping) : self
Creates a mapping object.
array|\Elastica\Type\Mapping | $mapping | Mapping object or properties array |
If invalid type