BaseSearchFactory
Base factory to build elastic search requests.
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Namespace
IO\Services\ItemSearch\Factories
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
public inherit($searchBuilder, $inheritedProperties = []):BaseSearchFactory
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Create a new factory instance based on properties of an existing factory.
Type |
Name |
Description |
|
The search factory to inherit properties from. |
|
|
List of properties to inherit or null to inherit all properties. |
public withMutator($mutator):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add a mutator
Type |
Name |
Description |
|
public createFilter($filterClass):TypeInterface
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add a filter. Will create a new instance of the filter class if not already created.
Type |
Name |
Description |
|
public withFilter($filter):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add a filter. Will override existing filter instances.
Type |
Name |
Description |
|
public withResultFields($fields):BaseSearchFactory
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Set fields to be contained in search result.
Type |
Name |
Description |
|
Reference to a json file to load fields from or a list of field names. |
public getResultFields():array
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withExtension($extensionClass, $extensionParams = []):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add an extension.
Type |
Name |
Description |
|
Extension class to add. |
|
|
Additional parameters to pass to extensions constructor |
public getExtensions():array
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Get all registered extensions
public withAggregation($aggregation):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add an aggregation
Type |
Name |
Description |
|
public setPage($page, $itemsPerPage):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Set pagination parameters.
Type |
Name |
Description |
|
||
|
public sortBy($field, $order = \Plenty\Modules\Webshop\ItemSearch\Factories\VariationSearchFactory::SORTING_ORDER_DESC):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add sorting parameters
Type |
Name |
Description |
|
The field to order by |
|
|
Direction to order results. Possible values: 'asc' or 'desc' |
public sortByMultiple($sortingList):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Add multiple sorting parameters
Type |
Name |
Description |
|
List of sorting parameters. Each entry should have a 'field' and an 'order' property. |
public setOrder($idList):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Type |
Name |
Description |
|
public groupBy($field):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Group results by field
Type |
Name |
Description |
|
The field to group properties by. |
public build():DocumentSearch
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Build the elastic search request.
public prepareSearch($source):DocumentSearch
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Build the search instance itself. May be overridden by concrete factories.
Type |
Name |
Description |
|