\midcom_services_indexer_client

Indexer client base class

Summary

Methods
Properties
Constants
__construct()
index()
add_query()
reindex()
new_document()
process_results()
create_document()
No public properties found
No constants found
No protected methods found
$_topic
$_node
$_l10n
N/A
No private methods found
$_indexer
$_queries
N/A

Properties

$_topic

$_topic : \midcom_db_topic

The topic we're working on

Type

\midcom_db_topic

$_node

$_node : array

The NAP node corresponding to the topic

Type

array

$_queries

$_queries : array

The queries we will work on. Each entry consists of a querybuilder instance and a datamanager to render the results, and is indexed by name

Type

array

Methods

__construct()

__construct(\midcom_db_topic  $topic, \midcom_services_indexer  $indexer = null) 

Constructor

Parameters

\midcom_db_topic $topic

The current topic

\midcom_services_indexer $indexer

The indexer service

index()

index(mixed  $object) 

Index a single object from DM

Parameters

mixed $object

The object instance to use

add_query()

add_query(  $name, \midcom_core_querybuilder  $qb,   $schemadb) 

Parameters

$name
\midcom_core_querybuilder $qb
$schemadb

reindex()

reindex() 

process_results()

process_results(string  $name, array  $results, mixed  $schemadb) : array<mixed,\midcom_services_indexer_document>

Parameters

string $name
array $results
mixed $schemadb

Returns

array<mixed,\midcom_services_indexer_document>