MultiSearchFactory

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

Deprecated!

since 5.0.0 will be deleted in 6.0.0

Namespace

IO\Services\ItemSearch\Factories

Properties
Type Name Description

array

$searches

array

$extensions

string

$pluginNamespace

Methods
public getSearches():array
Deprecated!

since 5.0.0 will be deleted in 6.0.0

Get all registered searches

public getExtensions():array
Deprecated!

since 5.0.0 will be deleted in 6.0.0

Get all registered extensions

public addSearch($resultName, $searchBuilder):Factories
Deprecated!

since 5.0.0 will be deleted in 6.0.0

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
Deprecated!

since 5.0.0 will be deleted in 6.0.0

Execute the multisearch and collect results.