Content_Indexer
in package
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
Tags
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
$_objectManager
Object manager
protected
Content_Objects_Manager
$_objectManager
$_typeManager
Type management object
protected
Content_Types_Manager
$_typeManager
$_userManager
User manager object
protected
Content_Users_Manager
$_userManager
Methods
__construct()
Constructor
public
__construct(Horde_ElasticSearch_Client $es, Content_Users_Manager $userManager, Content_Types_Manager $typeManager, Content_Objects_Manager $objectManager) : mixed
Parameters
- $es : Horde_ElasticSearch_Client
- $userManager : Content_Users_Manager
- $typeManager : Content_Types_Manager
- $objectManager : Content_Objects_Manager
Return values
mixed —index()
public
index(mixed $index, mixed $type, mixed $id, mixed $data) : mixed
Parameters
- $index : mixed
- $type : mixed
- $id : mixed
- $data : mixed
Return values
mixed —search()
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