Documentation

Content_Indexer
in package

Copyright 2011-2017 Horde LLC (http://www.horde.org/)

Tags
author

Chuck Hagenbuch chuck@horde.org

license

http://www.horde.org/licenses/bsd BSD

category

Horde

Table of Contents

$_es  : Horde_ElasticSearch_Client
ElasticSearch client
$_objectManager  : Content_Objects_Manager
Object manager
$_typeManager  : Content_Types_Manager
Type management object
$_userManager  : Content_Users_Manager
User manager object
__construct()  : mixed
Constructor
index()  : mixed
search()  : mixed
_ensureObject()  : mixed
Convenience method - if $object is an array, it is taken as an array of 'object' and 'type' to pass to objectManager::ensureObjects() if it's a scalar value, it's taken as the object_id and simply returned.

Properties

$_es

ElasticSearch client

protected Horde_ElasticSearch_Client $_es

Methods

index()

public index(mixed $index, mixed $type, mixed $id, mixed $data) : mixed
Parameters
$index : mixed
$type : mixed
$id : mixed
$data : mixed
Return values
mixed
public search(mixed $index, mixed $type, mixed $query) : mixed
Parameters
$index : mixed
$type : mixed
$query : mixed
Return values
mixed

_ensureObject()

Convenience method - if $object is an array, it is taken as an array of 'object' and 'type' to pass to objectManager::ensureObjects() if it's a scalar value, it's taken as the object_id and simply returned.

protected _ensureObject(mixed $object) : mixed
Parameters
$object : mixed
Return values
mixed

Search results