PHP Class ElasticSearch\Transport\Memcached

(c) Raymond Julin For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Inheritance: extends Base
Mostrar archivo Open project: nervetattoo/elasticsearch

Public Methods

Method Description
__construct ( $host = "127.0.0.1", $port = 11311, $timeout = null )
delete ( mixed $id = false, array $options = [] ) : array Flush this index/type combination
index ( array $document, mixed $id = false, array $options = [] ) : array Index a new document or update it if existing
request ( string | array $path, string $method = "GET", array | boolean $payload = false ) : array Perform a request against the given path/method/payload combination Example: $es->request('/_status');
search ( array | string $query ) : array Search
update ( array $partialDocument, mixed $id, array $options = [] ) : array Update a part of a document

Method Details

__construct() public method

public __construct ( $host = "127.0.0.1", $port = 11311, $timeout = null )

delete() public method

Flush this index/type combination
public delete ( mixed $id = false, array $options = [] ) : array
$id mixed
$options array Parameters to pass to delete action
return array

index() public method

Index a new document or update it if existing
public index ( array $document, mixed $id = false, array $options = [] ) : array
$document array
$id mixed Optional
$options array
return array

request() public method

Perform a request against the given path/method/payload combination Example: $es->request('/_status');
public request ( string | array $path, string $method = "GET", array | boolean $payload = false ) : array
$path string | array
$method string
$payload array | boolean
return array

update() public method

Update a part of a document
public update ( array $partialDocument, mixed $id, array $options = [] ) : array
$partialDocument array
$id mixed
$options array
return array