$_params
$_params : array
Params.
Base class for things that can be sent to the update api (Document and Script).
This function can be used to handle params for queries, filter
$_upsert : \Elastica\Document
setType(\Elastica\Type|string $type) : $this
Sets the document type name.
| \Elastica\Type|string | $type | Type name |
setIndex(\Elastica\Index|string $index) : $this
Sets the document index name.
| \Elastica\Index|string | $index | Index name |
| None found |
| None found |
setRouting(string $value) : $this
Set routing query param.
| string | $value | routing |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |
setUpsert(\Elastica\Document|array $data) : $this
| \Elastica\Document|array | $data |
| None found |
getUpsert() : \Elastica\Document
| None found |
getOptions(array $fields = array(), boolean $withUnderscore = false) : array
| array | $fields | if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing |
| boolean | $withUnderscore | should option keys contain underscore prefix |
| None found |
_convertArrayable(array $array) : array
Cast objects to arrays.
| array | $array |
| None found |
_getBaseName() : string
Param's name Picks the last part of the class name and makes it snake_case You can override this method if you want to change the name.
name
| None found |
_setRawParam(string $key, mixed $value) : $this
Sets params not inside params array.
| string | $key | |
| mixed | $value |
| None found |