MultiSearchFactory

Factory to build an elastic search multisearch request by collecting multiple search factory instances.

Namespace

IO\Services\ItemSearch\Factories

Properties
Type Name Description

array

$searches

array

$extensions

string

$pluginNamespace

Methods
public getSearches():array

Get all registered searches

public getExtensions():array

Get all registered extensions

public addSearch($resultName, $searchBuilder):MultiSearchFactory

Add a search factory instance to be included in current mutlisearch request.

Parameters

Type

Name

Description

string

$resultName

An unique name for the search. Results of this search will be accessible by this key.

BaseSearchFactory

$searchBuilder

A search factory

public getResults():array

Execute the multisearch and collect results.