FacetSearchFactory

Concrete factory to build facet searches.

Namespace

IO\Services\ItemSearch\Factories

Extends
Constants
Type Name Value Description

string

SORTING_ORDER_ASC

'asc'

string

SORTING_ORDER_DESC

'desc'

string

INHERIT_AGGREGATIONS

'aggregations'

string

INHERIT_COLLAPSE

'collapse'

string

INHERIT_EXTENSIONS

'extensions'

string

INHERIT_FILTERS

'filters'

string

INHERIT_MUTATORS

'mutators'

string

INHERIT_PAGINATION

'pagination'

string

INHERIT_RESULT_FIELDS

'resultFields'

string

INHERIT_SORTING

'sorting'

Properties
Type Name Description

``

$facetValues

Methods
public static create($facets):FacetSearchFactory

Create a factory instance depending on a given set of facet values.

Parameters

Type

Name

Description

string | array

$facets

List of active facet values. If string is given, it will be exploded by ',' to a list of values.

public prepareSearch($source):DocumentSearch

Build facet search classes

Parameters

Type

Name

Description

IncludeSource

$source

public withMinimumCount():Factories

Register extension to filter facets by minimum hit count.