LANG_MVEL
LANG_MVEL
Script objects, containing script internals.
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 |
setUpsert(\Elastica\Document|array $data) : $this
| \Elastica\Document|array | $data |
getUpsert() : \Elastica\Document
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 |