\Horde_ElasticSearch_Client

ElasticSearch client class

Summary

Methods
Properties
Constants
__construct()
status()
search()
get()
add()
count()
map()
No public properties found
No constants found
_request()
_path()
$_server
$_httpClient
N/A
No private methods found
No private properties found
N/A

Properties

$_server

$_server : 

Type

$_httpClient

$_httpClient : 

Type

Methods

__construct()

__construct(  $server, \Horde_Http_Client  $httpClient) 

Parameters

$server
\Horde_Http_Client $httpClient

status()

status(  $index = null) 

curl -X GET {SERVER}/_status

Parameters

$index

search()

search(  $index,   $type,   $q) 

curl -X GET {SERVER}/{INDEX}/{TYPE}/_search?q= .

..

Parameters

$index
$type
$q

get()

get(  $index,   $type,   $id) 

curl -X GET {SERVER}/{INDEX}/{TYPE/{ID}

Parameters

$index
$type
$id

add()

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

curl -X PUT {SERVER}/{INDEX}/{TYPE}/{ID} -d .

..

Parameters

$index
$type
$id
$data

count()

count(  $index,   $type) 

curl -X GET {SERVER}/{INDEX}/{TYPE}/_count -d {matchAll:{}}

Parameters

$index
$type

map()

map(  $index,   $type,   $data) 

curl -X PUT {SERVER}/{INDEX}/{TYPE}/_mapping -d .

..

Parameters

$index
$type
$data

_request()

_request(  $path,   $method = 'GET',   $data = null,   $headers = array()) 

Parameters

$path
$method
$data
$headers

_path()

_path()