PHP 클래스 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.
상속: extends Base
파일 보기 프로젝트 열기: nervetattoo/elasticsearch

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

delete() 공개 메소드

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

index() 공개 메소드

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
리턴 array

request() 공개 메소드

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
리턴 array

update() 공개 메소드

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