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
Afficher le fichier Open project: nervetattoo/elasticsearch

Méthodes publiques

Méthode 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 méthode

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

delete() public méthode

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

index() public méthode

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
Résultat array

request() public méthode

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
Résultat array

update() public méthode

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