insert() public method
Inserts a document into an index
See also http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html.
| public mixed insert ( $index, $type, $data, $id = null, $options = [] ) | ||
|---|---|---|
| $index | string | |
| $type | string | |
| $data | string|array |
Json string or array of data to store |
| $id | null |
The documents id. If not specified Id will be automatically chosen |
| $options | array | |
Please login to continue.