PHP Class Horde_ElasticSearch_Client, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/)
Author: Chuck Hagenbuch ([email protected])
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_httpClient
$_server

Public Methods

Method Description
__construct ( $server, Horde_Http_Client $httpClient )
add ( $index, $type, $id, $data ) curl -X PUT {SERVER}/{INDEX}/{TYPE}/{ID} -d .
count ( $index, $type ) curl -X GET {SERVER}/{INDEX}/{TYPE}/_count -d {matchAll:{}}
get ( $index, $type, $id ) curl -X GET {SERVER}/{INDEX}/{TYPE/{ID}
map ( $index, $type, $data ) curl -X PUT {SERVER}/{INDEX}/{TYPE}/_mapping -d .
search ( $index, $type, $q ) curl -X GET {SERVER}/{INDEX}/{TYPE}/_search?q= .
status ( $index = null ) curl -X GET {SERVER}/_status

Protected Methods

Method Description
_path ( )
_request ( $path, $method = 'GET', $data = null, $headers = [] )

Method Details

__construct() public method

public __construct ( $server, Horde_Http_Client $httpClient )
$httpClient Horde_Http_Client

_path() protected method

protected _path ( )

_request() protected method

protected _request ( $path, $method = 'GET', $data = null, $headers = [] )

add() public method

..
public add ( $index, $type, $id, $data )

count() public method

curl -X GET {SERVER}/{INDEX}/{TYPE}/_count -d {matchAll:{}}
public count ( $index, $type )

get() public method

curl -X GET {SERVER}/{INDEX}/{TYPE/{ID}
public get ( $index, $type, $id )

map() public method

..
public map ( $index, $type, $data )

status() public method

curl -X GET {SERVER}/_status
public status ( $index = null )

Property Details

$_httpClient protected property

protected $_httpClient

$_server protected property

protected $_server