elasticsearch\Command setMapping()

setMapping() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html. public mixed setMapping ( $index, $type, $mapping, $options = [] )$index string $type string $mapping string|array $options array

elasticsearch\Command search()

search() public method Sends a request to the _search API and returns the result public mixed search ( $options = [] )$options array

elasticsearch\Command scroll()

scroll() public method (available since version 2.0.4) See also https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html. public mixed scroll ( $options = [] )$options array

elasticsearch\Command refreshIndex()

refreshIndex() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html. public mixed refreshIndex ( $index )$index

elasticsearch\Command openIndex()

openIndex() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html. public mixed openIndex ( $index )$index

elasticsearch\Command mget()

mget() public method Gets multiple documents from the index TODO allow specifying type and index + fields See also http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html. public mixed mget ( $index, $type, $ids, $options = [] )$index $type $ids $options array

elasticsearch\Command insert()

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

elasticsearch\Command indexExists()

indexExists() public method Checks whether an index exists See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html. public mixed indexExists ( $index )$index

elasticsearch\Command getTemplate()

getTemplate() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html. public mixed getTemplate ( $name )$name

elasticsearch\Command getSource()

getSource() public method Gets a documents _source from the index (>=v0.90.1) See also http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#_source. public mixed getSource ( $index, $type, $id )$index $type $id