Properties¶
$innerService¶
|
|
Methods¶
__construct() ¶
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | SearchService | - | - |
findContent() ¶
Finds content objects for the given query.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | Query | - | - |
$languageFilter | array<string|int, mixed> | [] |
Configuration for specifying prioritized languages query will be performed on.
Also used to define which field languages are loaded for the returned content.
Currently supports: |
$filterOnUserPermissions | bool | true |
if true only the objects which the user is allowed to read are returned. |
Return values
findContentInfo() ¶
Finds contentInfo objects for the given query.
|
|
This method works just like findContent, however does not load the full Content Objects. This means it can be more efficient for use cases where you don't need the full Content. Also including use cases where content will be loaded by separate code, like an ESI based sub requests that takes content ID as input.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | Query | - | - |
$languageFilter | array<string|int, mixed> | [] |
Configuration for specifying prioritized languages query will be performed on.
Currently supports: |
$filterOnUserPermissions | bool | true |
if true (default) only the objects which is the user allowed to read are returned. |
Return values
findLocations() ¶
Finds Locations for the given query.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | LocationQuery | - | - |
$languageFilter | array<string|int, mixed> | [] |
Configuration for specifying prioritized languages query will be performed on.
Currently supports: |
$filterOnUserPermissions | bool | true |
if true only the objects which is the user allowed to read are returned. |
Return values
findSingle() ¶
Performs a query for a single content object.
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$filter | Criterion | - | - |
$languageFilter | array<string|int, mixed> | [] |
Configuration for specifying prioritized languages query will be performed on.
Currently supports: |
$filterOnUserPermissions | bool | true |
if true only the objects which is the user allowed to read are returned. |
Return values
suggest() ¶
Suggests a list of values for the given prefix.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$prefix | string | - | - |
$fieldPaths | array<string|int, mixed> | [] | - |
$limit | int | 10 | - |
$filter | Criterion | null | - |
supports() ¶
Query for supported capability of currently configured search engine.
|
|
Will return false if search engine does not implement Capable.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$capabilityFlag | int | - |
One of CAPABILITY_* constants. |
Return values
bool