PHP Class Horde_ElasticSearch_Index, horde

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

Protected Properties

Property Type Description
$_client
$_index

Public Methods

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

Method Details

__construct() public method

public __construct ( $index, Horde_ElasticSearch_Client $client )
$client Horde_ElasticSearch_Client

add() public method

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

count() public method

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

create() public method

curl -X PUT {SERVER}/{INDEX}/
public create ( )

drop() public method

curl -X DELETE {SERVER}/{INDEX}/
public drop ( )

get() public method

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

map() public method

..
public map ( $type, $data )

status() public method

curl -X GET {SERVER}/{INDEX}/_status
public status ( )

Property Details

$_client protected_oe property

protected $_client

$_index protected_oe property

protected $_index