\Horde_ElasticSearch_Index

ElasticSearch index class

Summary

Methods
Properties
Constants
__construct()
create()
drop()
status()
search()
get()
add()
count()
map()
No public properties found
No constants found
No protected methods found
$_client
$_index
N/A
No private methods found
No private properties found
N/A

Properties

$_client

$_client : 

Type

$_index

$_index : 

Type

Methods

create()

create() 

curl -X PUT {SERVER}/{INDEX}/

drop()

drop() 

curl -X DELETE {SERVER}/{INDEX}/

status()

status() 

curl -X GET {SERVER}/{INDEX}/_status

search()

search(  $type,   $q) 

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

..

Parameters

$type
$q

get()

get(  $type,   $id) 

curl -XGET {SERVER}/{INDEX}/{TYPE/{ID}

Parameters

$type
$id

add()

add(  $type,   $id,   $data) 

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

..

Parameters

$type
$id
$data

count()

count(  $type) 

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

Parameters

$type

map()

map(  $type,   $data) 

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

..

Parameters

$type
$data