Method |
Description |
|
__construct ( Type $type = null, array $properties = [] ) |
Construct Mapping. |
|
create ( array | Mapping $mapping ) : self |
Creates a mapping object. |
|
disableSource ( boolean $enabled = false ) |
Disables the source in the index. |
|
enableAllField ( boolean $enabled = true ) |
Enables the "_all" field. |
|
enableTtl ( boolean $enabled = true ) |
Enables TTL for all documents in this type. |
|
getParam ( string $key ) : mixed |
Get raw parameters. |
|
getProperties ( ) : array |
Gets the mapping properties. |
|
getType ( ) : Type |
Returns mapping type. |
|
send ( array $query = [] ) : Response |
Submits the mapping and sends it to the server. |
|
setAllField ( array $params ) |
Sets params for the "_all" field. |
|
setMeta ( array $meta ) |
Sets the mapping _meta. |
|
setParam ( string $key, mixed $value ) |
Sets raw parameters. |
|
setParent ( string $type ) |
Set parent type. |
|
setProperties ( array $properties ) |
Sets the mapping properties. |
|
setSource ( array $source ) |
Sets source values. |
|
setTtl ( array $params ) |
Set TTL. |
|
setType ( Type $type ) |
Sets the mapping type
Enter description here . |
|
toArray ( ) : array |
Converts the mapping to an array. |
|